Skip to content

Commit 8952b75

Browse files
committed
Miscellaneous fixes
- Fix login button color (issue material-components#133) - Restore obscureText on password field (issue material-components#127) - Fix AccentColorOverride (issue material-components#128, material-components#132)
1 parent 0bceca2 commit 8952b75

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

mdc_100_series/lib/app.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ ThemeData _buildShrineTheme() {
6262
cardColor: kShrineBackgroundWhite,
6363
textSelectionColor: kShrinePink100,
6464
errorColor: kShrineErrorRed,
65-
buttonTheme: ButtonThemeData(
66-
textTheme: ButtonTextTheme.accent,
65+
buttonTheme: base.buttonTheme.copyWith(
66+
buttonColor: kShrinePink100,
6767
),
6868
primaryIconTheme: base.iconTheme.copyWith(
6969
color: kShrineBrown900

mdc_100_series/lib/login.dart

+5-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class _LoginPageState extends State<LoginPage> {
6161
decoration: InputDecoration(
6262
labelText: 'Password',
6363
),
64+
obscureText: true,
6465
),
6566
),
6667
ButtonBar(
@@ -105,7 +106,10 @@ class AccentColorOverride extends StatelessWidget {
105106
Widget build(BuildContext context) {
106107
return Theme(
107108
child: child,
108-
data: Theme.of(context).copyWith(accentColor: color),
109+
data: Theme.of(context).copyWith(
110+
accentColor: color,
111+
brightness: Brightness.dark,
112+
),
109113
);
110114
}
111115
}

0 commit comments

Comments
 (0)