Skip to content

Commit 5f6fc70

Browse files
chrisbobbegnprice
authored andcommitted
login [nfc]: Use ButtonStyle.foregroundColor for buttons' text color
This seems like the preferred way to use the API.
1 parent b03efef commit 5f6fc70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/widgets/login.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,15 +430,15 @@ class _LoginPageState extends State<LoginPage> {
430430
final icon = method.displayIcon;
431431
return OutlinedButton.icon(
432432
style: ButtonStyle(
433-
backgroundColor: WidgetStatePropertyAll(colorScheme.secondaryContainer)),
433+
backgroundColor: WidgetStatePropertyAll(colorScheme.secondaryContainer),
434+
foregroundColor: WidgetStatePropertyAll(colorScheme.onSecondaryContainer)),
434435
icon: icon != null
435436
? Image.network(icon, width: 24, height: 24)
436437
: null,
437438
onPressed: !_inProgress
438439
? () => _beginWebAuth(method)
439440
: null,
440441
label: Text(
441-
style: TextStyle(color: colorScheme.onSecondaryContainer),
442442
zulipLocalizations.signInWithFoo(method.displayName)));
443443
}),
444444
],

0 commit comments

Comments
 (0)