File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Expand file tree Collapse file tree 2 files changed +12
-14
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
),
Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ class UserInfoWidget extends StatelessWidget {
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