mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-20 02:59:26 +01:00
design: Make snackbars always floating
This commit is contained in:
parent
19233ad16b
commit
c04b0c7e8a
@ -39,9 +39,7 @@ abstract class FluffyThemes {
|
|||||||
secondaryHeaderColor: lighten(AppConfig.primaryColor, .51),
|
secondaryHeaderColor: lighten(AppConfig.primaryColor, .51),
|
||||||
scaffoldBackgroundColor: Colors.white,
|
scaffoldBackgroundColor: Colors.white,
|
||||||
textTheme: Typography.material2018().black.merge(fallback_text_theme),
|
textTheme: Typography.material2018().black.merge(fallback_text_theme),
|
||||||
snackBarTheme: SnackBarThemeData(
|
snackBarTheme: SnackBarThemeData(behavior: SnackBarBehavior.floating),
|
||||||
behavior: kIsWeb ? SnackBarBehavior.floating : SnackBarBehavior.fixed,
|
|
||||||
),
|
|
||||||
pageTransitionsTheme: PageTransitionsTheme(
|
pageTransitionsTheme: PageTransitionsTheme(
|
||||||
builders: {
|
builders: {
|
||||||
TargetPlatform.fuchsia: ZoomPageTransitionsBuilder(),
|
TargetPlatform.fuchsia: ZoomPageTransitionsBuilder(),
|
||||||
@ -174,6 +172,7 @@ abstract class FluffyThemes {
|
|||||||
padding: EdgeInsets.all(12),
|
padding: EdgeInsets.all(12),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
snackBarTheme: SnackBarThemeData(behavior: SnackBarBehavior.floating),
|
||||||
appBarTheme: AppBarTheme(
|
appBarTheme: AppBarTheme(
|
||||||
brightness: Brightness.dark,
|
brightness: Brightness.dark,
|
||||||
color: Color(0xff1D1D1D),
|
color: Color(0xff1D1D1D),
|
||||||
|
Loading…
Reference in New Issue
Block a user