Skip to content

Commit

Permalink
FilledButton proposal (#298)
Browse files Browse the repository at this point in the history
Remove the outline and make the background color slightly stronger.
  • Loading branch information
jpnurmi committed Mar 2, 2023
1 parent 55ceb27 commit f8efee2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/src/themes/common_themes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,14 @@ FilledButtonThemeData _createFilledButtonThemeData(
) {
return FilledButtonThemeData(
style: FilledButton.styleFrom(
disabledBackgroundColor: colorScheme.onSurface.withOpacity(0.06),
backgroundColor: colorScheme.onSurface.withOpacity(0.05),
surfaceTintColor: colorScheme.onSurface.withOpacity(0.05),
disabledBackgroundColor: colorScheme.onSurface.withOpacity(0.12),
backgroundColor: colorScheme.onSurface.withOpacity(0.1),
surfaceTintColor: colorScheme.onSurface.withOpacity(0.1),
foregroundColor: colorScheme.onSurface,
visualDensity: _commonButtonStyle.visualDensity,
elevation: 0,
shadowColor: Colors.transparent,
shape: RoundedRectangleBorder(
side: BorderSide(color: colorScheme.outline),
borderRadius: BorderRadius.circular(kButtonRadius),
),
),
Expand Down

0 comments on commit f8efee2

Please sign in to comment.