File tree Expand file tree Collapse file tree 5 files changed +72
-4
lines changed Expand file tree Collapse file tree 5 files changed +72
-4
lines changed Original file line number Diff line number Diff line change 24
24
<meta-data
25
25
android : name =" io.flutter.app.android.SplashScreenUntilFirstFrame"
26
26
android : value =" true" />
27
+ <meta-data
28
+ android : name =" flutterEmbedding"
29
+ android : value =" 2" />
27
30
<intent-filter >
28
31
<action android : name =" android.intent.action.MAIN" />
29
32
<category android : name =" android.intent.category.LAUNCHER" />
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ class MyApp extends StatelessWidget {
7
7
@override
8
8
Widget build (BuildContext context) {
9
9
return MaterialApp (
10
+ debugShowCheckedModeBanner: false ,
10
11
theme: ThemeData (
11
12
appBarTheme: AppBarTheme (color: Color (0xFFe67e00 )),
12
13
),
Original file line number Diff line number Diff line change @@ -12,10 +12,7 @@ class Home extends StatelessWidget {
12
12
child: Column (
13
13
mainAxisAlignment: MainAxisAlignment .center,
14
14
children: < Widget > [
15
- Image .asset (
16
- 'assets/images/logo.png' ,
17
- height: 200 ,
18
- ),
15
+ Image .asset ('assets/images/logo.png' , height: 200 ),
19
16
SizedBox (height: 24 ),
20
17
Text (
21
18
'Master Branch' ,
Original file line number Diff line number Diff line change
1
+ import 'package:flutter/material.dart' ;
2
+
3
+ class CheetahButton extends StatelessWidget {
4
+ final String text;
5
+ final Function onPressed;
6
+ final Color ? color;
7
+ final Color ? textColor;
8
+
9
+ CheetahButton ({
10
+ required this .text,
11
+ required this .onPressed,
12
+ this .color,
13
+ this .textColor,
14
+ });
15
+
16
+ @override
17
+ Widget build (BuildContext context) {
18
+ return Expanded (
19
+ child: TextButton (
20
+ style: TextButton .styleFrom (
21
+ padding: EdgeInsets .all (16 ),
22
+ elevation: 8 ,
23
+ backgroundColor: color ?? Theme .of (context).primaryColor,
24
+ shape: RoundedRectangleBorder (
25
+ borderRadius: BorderRadius .all (Radius .circular (10 )),
26
+ ),
27
+ ),
28
+ child: Text (
29
+ text,
30
+ style: TextStyle (
31
+ fontSize: 16 ,
32
+ color: textColor ?? Colors .white,
33
+ ),
34
+ ),
35
+ onPressed: onPressed (),
36
+ ),
37
+ );
38
+ }
39
+ }
Original file line number Diff line number Diff line change
1
+ import 'package:flutter/material.dart' ;
2
+
3
+ class CheetahInput extends StatelessWidget {
4
+ final String labelText;
5
+ final Function onSaved;
6
+
7
+ CheetahInput ({@required this .labelText, @required this .onSaved});
8
+
9
+ @override
10
+ Widget build (BuildContext context) {
11
+ return TextFormField (
12
+ decoration: InputDecoration (
13
+ fillColor: Colors .white,
14
+ filled: true ,
15
+ labelText: labelText,
16
+ border: OutlineInputBorder (
17
+ borderRadius: BorderRadius .circular (16 ),
18
+ ),
19
+ floatingLabelBehavior: FloatingLabelBehavior .never,
20
+ ),
21
+ initialValue: '' ,
22
+ validator: (String value) {
23
+ return value.isEmpty ? '$labelText is required' : null ;
24
+ },
25
+ onSaved: onSaved (),
26
+ );
27
+ }
28
+ }
You can’t perform that action at this time.
0 commit comments