File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ ThemeData _buildShrineTheme() {
86
86
cardColor: kShrineBackgroundWhite,
87
87
textSelectionColor: kShrinePink100,
88
88
errorColor: kShrineErrorRed,
89
- buttonTheme: ButtonThemeData (
90
- textTheme : ButtonTextTheme .accent ,
89
+ buttonTheme: base .buttonTheme. copyWith (
90
+ buttonColor : kShrinePink100 ,
91
91
),
92
92
primaryIconTheme: base .iconTheme.copyWith (color: kShrineBrown900),
93
93
inputDecorationTheme: InputDecorationTheme (
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
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import 'package:flutter/widgets.dart';
19
19
20
20
class CutCornersBorder extends OutlineInputBorder {
21
21
const CutCornersBorder ({
22
- BorderSide borderSide: BorderSide .none ,
22
+ BorderSide borderSide: const BorderSide () ,
23
23
BorderRadius borderRadius: const BorderRadius .all (Radius .circular (2.0 )),
24
24
this .cut: 7.0 ,
25
25
double gapPadding: 2.0 ,
You can’t perform that action at this time.
0 commit comments