File tree 2 files changed +19
-21
lines changed
2 files changed +19
-21
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,11 @@ class _HomePageState extends State<HomePage>
60
60
_configCard (),
61
61
Expanded (
62
62
child: Center (
63
- child: RaisedButton (
64
- textColor: textColor,
65
- color: accentColor,
66
- onPressed: _signIn,
67
- child: Text ('Sign In' ),
68
- ),
69
- ),
63
+ child: ElevatedButton (
64
+ child: Text ('Sign In' ),
65
+ onPressed: _signIn,
66
+ style: ElevatedButton .styleFrom (
67
+ primary: accentColor, onPrimary: textColor))),
70
68
),
71
69
],
72
70
),
@@ -183,12 +181,12 @@ class _HomePageState extends State<HomePage>
183
181
return AlertDialog (
184
182
content: Text (text),
185
183
actions: < Widget > [
186
- FlatButton (
187
- child: Text ('Close' ),
188
- onPressed: () {
189
- Navigator .of (context).pop ();
190
- },
191
- ),
184
+ TextButton (
185
+ child: Text ('Close' ),
186
+ onPressed: () {
187
+ Navigator .of (context).pop ();
188
+ },
189
+ style : TextButton . styleFrom (primary : accentColor) ),
192
190
],
193
191
);
194
192
},
Original file line number Diff line number Diff line change @@ -31,18 +31,18 @@ class UserInfoWidget extends StatelessWidget {
31
31
: Icon (Icons .person),
32
32
Text (
33
33
userProfile.displayName,
34
- style: Theme .of (context).textTheme.headline ,
34
+ style: Theme .of (context).textTheme.headline5 ,
35
35
),
36
36
if (userEmail != null ) Text (userEmail! ),
37
37
Text (userProfile.statusMessage! ),
38
38
Container (
39
- child: RaisedButton (
40
- textColor : textColor ,
41
- color : accentColor,
42
- child : Text ( 'Sign Out' ),
43
- onPressed : onSignOutPressed as void Function () ? ,
44
- ),
45
- ),
39
+ child: ElevatedButton (
40
+ child : Text ( 'Sign Out' ) ,
41
+ onPressed : () {
42
+ onSignOutPressed. call ();
43
+ } ,
44
+ style : ElevatedButton . styleFrom (
45
+ primary : accentColor, onPrimary : textColor)) ),
46
46
],
47
47
),
48
48
);
You can’t perform that action at this time.
0 commit comments