Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Commit

Permalink
fix: set default size for snackbars (#389)
Browse files Browse the repository at this point in the history
Fixes #388
  • Loading branch information
Feichtmeier authored Aug 15, 2023
1 parent f1395ce commit be019d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/themes/common_themes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ SnackBarThemeData _createSnackBarTheme(ColorScheme colorScheme) {
final light = colorScheme.brightness == Brightness.light;
const fg = Colors.white;
return SnackBarThemeData(
width: kSnackBarWidth,
backgroundColor: const Color.fromARGB(255, 20, 20, 20).withOpacity(0.8),
closeIconColor: fg,
actionTextColor: Colors.white,
Expand Down
1 change: 1 addition & 0 deletions lib/src/themes/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const kCompactAppBarHeight = 46.0;
const kComfortableAppBarHeight = 56.0;
const kCompactNavigationBarHeight = 64.0;
const kComfortableNavigationBarHeight = 74.0;
const kSnackBarWidth = 350.0;

const kCompactButtonHeight = 34.0;
const kComfortableButtonHeight = 44.0;
Expand Down

0 comments on commit be019d8

Please sign in to comment.