|
|
@ -67,6 +67,7 @@ abstract class FluffyThemes {
|
|
|
|
brightness: brightness,
|
|
|
|
brightness: brightness,
|
|
|
|
seedColor: seed ?? AppConfig.colorSchemeSeed ?? AppConfig.primaryColor,
|
|
|
|
seedColor: seed ?? AppConfig.colorSchemeSeed ?? AppConfig.primaryColor,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
final isColumnMode = FluffyThemes.isColumnMode(context);
|
|
|
|
return ThemeData(
|
|
|
|
return ThemeData(
|
|
|
|
visualDensity: VisualDensity.standard,
|
|
|
|
visualDensity: VisualDensity.standard,
|
|
|
|
useMaterial3: true,
|
|
|
|
useMaterial3: true,
|
|
|
@ -95,14 +96,11 @@ abstract class FluffyThemes {
|
|
|
|
filled: false,
|
|
|
|
filled: false,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
appBarTheme: AppBarTheme(
|
|
|
|
appBarTheme: AppBarTheme(
|
|
|
|
toolbarHeight: FluffyThemes.isColumnMode(context) ? 72 : 56,
|
|
|
|
toolbarHeight: isColumnMode ? 72 : 56,
|
|
|
|
shadowColor: FluffyThemes.isColumnMode(context)
|
|
|
|
shadowColor:
|
|
|
|
? colorScheme.surfaceContainer.withAlpha(128)
|
|
|
|
isColumnMode ? colorScheme.surfaceContainer.withAlpha(128) : null,
|
|
|
|
: null,
|
|
|
|
surfaceTintColor: isColumnMode ? colorScheme.surface : null,
|
|
|
|
surfaceTintColor:
|
|
|
|
backgroundColor: isColumnMode ? colorScheme.surface : null,
|
|
|
|
FluffyThemes.isColumnMode(context) ? colorScheme.surface : null,
|
|
|
|
|
|
|
|
backgroundColor:
|
|
|
|
|
|
|
|
FluffyThemes.isColumnMode(context) ? colorScheme.surface : null,
|
|
|
|
|
|
|
|
systemOverlayStyle: SystemUiOverlayStyle(
|
|
|
|
systemOverlayStyle: SystemUiOverlayStyle(
|
|
|
|
statusBarColor: Colors.transparent,
|
|
|
|
statusBarColor: Colors.transparent,
|
|
|
|
statusBarIconBrightness: brightness.reversed,
|
|
|
|
statusBarIconBrightness: brightness.reversed,
|
|
|
@ -123,9 +121,9 @@ abstract class FluffyThemes {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
snackBarTheme: const SnackBarThemeData(
|
|
|
|
snackBarTheme: SnackBarThemeData(
|
|
|
|
behavior: SnackBarBehavior.floating,
|
|
|
|
behavior: SnackBarBehavior.floating,
|
|
|
|
width: FluffyThemes.columnWidth * 1.5,
|
|
|
|
width: isColumnMode ? null : FluffyThemes.columnWidth * 1.5,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
elevatedButtonTheme: ElevatedButtonThemeData(
|
|
|
|
elevatedButtonTheme: ElevatedButtonThemeData(
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|