Skip to content

Commit

Permalink
login: Pad external auth buttons explicitly.
Browse files Browse the repository at this point in the history
This pads these buttons to 48px on all devices, not just Android,
Fuchsia and iOS.

Signed-off-by: Zixuan James Li <[email protected]>
  • Loading branch information
PIG208 committed Dec 11, 2024
1 parent efacfa0 commit 9e15051
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/widgets/login.dart
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ class _LoginPageState extends State<LoginPage> {
final icon = method.displayIcon;
return OutlinedButton.icon(
style: ButtonStyle(
tapTargetSize: MaterialTapTargetSize.padded,
backgroundColor: WidgetStatePropertyAll(colorScheme.secondaryContainer),
foregroundColor: WidgetStatePropertyAll(colorScheme.onSecondaryContainer)),
icon: icon != null
Expand Down

0 comments on commit 9e15051

Please sign in to comment.