File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ ThemeData _buildShrineTheme() {
62
62
cardColor: kShrineBackgroundWhite,
63
63
textSelectionColor: kShrinePink100,
64
64
errorColor: kShrineErrorRed,
65
- buttonTheme: ButtonThemeData (
66
- textTheme : ButtonTextTheme .accent ,
65
+ buttonTheme: base .buttonTheme. copyWith (
66
+ buttonColor : kShrinePink100 ,
67
67
),
68
68
primaryIconTheme: base .iconTheme.copyWith (
69
69
color: kShrineBrown900
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ class _LoginPageState extends State<LoginPage> {
61
61
decoration: InputDecoration (
62
62
labelText: 'Password' ,
63
63
),
64
+ obscureText: true ,
64
65
),
65
66
),
66
67
ButtonBar (
@@ -105,7 +106,10 @@ class AccentColorOverride extends StatelessWidget {
105
106
Widget build (BuildContext context) {
106
107
return Theme (
107
108
child: child,
108
- data: Theme .of (context).copyWith (accentColor: color),
109
+ data: Theme .of (context).copyWith (
110
+ accentColor: color,
111
+ brightness: Brightness .dark,
112
+ ),
109
113
);
110
114
}
111
115
}
You can’t perform that action at this time.
0 commit comments