From c04b0c7e8ad89a89b70f3a3703ac5672820e1bf3 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sat, 22 May 2021 10:40:34 +0200 Subject: [PATCH] design: Make snackbars always floating --- lib/config/themes.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/config/themes.dart b/lib/config/themes.dart index a9ccee32..c48fe319 100644 --- a/lib/config/themes.dart +++ b/lib/config/themes.dart @@ -39,9 +39,7 @@ abstract class FluffyThemes { secondaryHeaderColor: lighten(AppConfig.primaryColor, .51), scaffoldBackgroundColor: Colors.white, textTheme: Typography.material2018().black.merge(fallback_text_theme), - snackBarTheme: SnackBarThemeData( - behavior: kIsWeb ? SnackBarBehavior.floating : SnackBarBehavior.fixed, - ), + snackBarTheme: SnackBarThemeData(behavior: SnackBarBehavior.floating), pageTransitionsTheme: PageTransitionsTheme( builders: { TargetPlatform.fuchsia: ZoomPageTransitionsBuilder(), @@ -174,6 +172,7 @@ abstract class FluffyThemes { padding: EdgeInsets.all(12), ), ), + snackBarTheme: SnackBarThemeData(behavior: SnackBarBehavior.floating), appBarTheme: AppBarTheme( brightness: Brightness.dark, color: Color(0xff1D1D1D),