|
|
|
@ -31,22 +31,23 @@ abstract class FluffyThemes {
|
|
|
|
|
subtitle2: fallbackTextStyle)
|
|
|
|
|
: const TextTheme();
|
|
|
|
|
|
|
|
|
|
static ThemeData light = ThemeData(
|
|
|
|
|
static ThemeData get light => ThemeData(
|
|
|
|
|
visualDensity: VisualDensity.standard,
|
|
|
|
|
primaryColorDark: Colors.white,
|
|
|
|
|
primaryColorLight: const Color(0xff121212),
|
|
|
|
|
brightness: Brightness.light,
|
|
|
|
|
primaryColor: AppConfig.primaryColor,
|
|
|
|
|
primaryColor: AppConfig.chatColor,
|
|
|
|
|
colorScheme: ThemeData.light().colorScheme.copyWith(
|
|
|
|
|
primary: AppConfig.primaryColor,
|
|
|
|
|
secondary: AppConfig.primaryColor,
|
|
|
|
|
primary: AppConfig.chatColor,
|
|
|
|
|
secondary: AppConfig.chatColor,
|
|
|
|
|
secondaryVariant: AppConfig.secondaryColor,
|
|
|
|
|
),
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
|
secondaryHeaderColor: const Color(0xffeeeffe),
|
|
|
|
|
secondaryHeaderColor: Colors.blueGrey.shade50,
|
|
|
|
|
scaffoldBackgroundColor: Colors.white,
|
|
|
|
|
textTheme: Typography.material2018().black.merge(fallbackTextTheme),
|
|
|
|
|
snackBarTheme: const SnackBarThemeData(behavior: SnackBarBehavior.floating),
|
|
|
|
|
snackBarTheme:
|
|
|
|
|
const SnackBarThemeData(behavior: SnackBarBehavior.floating),
|
|
|
|
|
pageTransitionsTheme: const PageTransitionsTheme(
|
|
|
|
|
builders: {
|
|
|
|
|
TargetPlatform.fuchsia: ZoomPageTransitionsBuilder(),
|
|
|
|
@ -68,13 +69,13 @@ abstract class FluffyThemes {
|
|
|
|
|
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
floatingActionButtonTheme: const FloatingActionButtonThemeData(
|
|
|
|
|
backgroundColor: AppConfig.primaryColor,
|
|
|
|
|
floatingActionButtonTheme: FloatingActionButtonThemeData(
|
|
|
|
|
backgroundColor: AppConfig.chatColor,
|
|
|
|
|
foregroundColor: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
elevatedButtonTheme: ElevatedButtonThemeData(
|
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|
|
primary: AppConfig.primaryColor,
|
|
|
|
|
primary: AppConfig.chatColor,
|
|
|
|
|
onPrimary: Colors.white,
|
|
|
|
|
elevation: 6,
|
|
|
|
|
shadowColor: const Color(0x44000000),
|
|
|
|
@ -99,11 +100,11 @@ abstract class FluffyThemes {
|
|
|
|
|
enabledBorder: OutlineInputBorder(
|
|
|
|
|
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
|
|
|
|
borderSide: BorderSide(
|
|
|
|
|
color: lighten(AppConfig.primaryColor, .51),
|
|
|
|
|
color: lighten(AppConfig.chatColor, .51),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
filled: true,
|
|
|
|
|
fillColor: lighten(AppConfig.primaryColor, .51),
|
|
|
|
|
fillColor: lighten(AppConfig.chatColor, .51),
|
|
|
|
|
),
|
|
|
|
|
appBarTheme: const AppBarTheme(
|
|
|
|
|
elevation: 6,
|
|
|
|
@ -118,11 +119,11 @@ abstract class FluffyThemes {
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
static ThemeData dark = ThemeData.dark().copyWith(
|
|
|
|
|
static ThemeData get dark => ThemeData.dark().copyWith(
|
|
|
|
|
visualDensity: VisualDensity.standard,
|
|
|
|
|
primaryColorDark: const Color(0xff121212),
|
|
|
|
|
primaryColorLight: Colors.white,
|
|
|
|
|
primaryColor: AppConfig.primaryColor,
|
|
|
|
|
primaryColor: AppConfig.chatColor,
|
|
|
|
|
errorColor: const Color(0xFFCF6679),
|
|
|
|
|
backgroundColor: Colors.black,
|
|
|
|
|
scaffoldBackgroundColor: Colors.black,
|
|
|
|
@ -131,7 +132,7 @@ abstract class FluffyThemes {
|
|
|
|
|
secondary: AppConfig.primaryColorLight,
|
|
|
|
|
secondaryVariant: AppConfig.secondaryColor,
|
|
|
|
|
),
|
|
|
|
|
secondaryHeaderColor: const Color(0xff232543),
|
|
|
|
|
secondaryHeaderColor: Colors.blueGrey.shade900,
|
|
|
|
|
textTheme: Typography.material2018().white.merge(fallbackTextTheme),
|
|
|
|
|
dialogTheme: DialogTheme(
|
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
@ -160,8 +161,8 @@ abstract class FluffyThemes {
|
|
|
|
|
TargetPlatform.iOS: CupertinoPageTransitionsBuilder(),
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
floatingActionButtonTheme: const FloatingActionButtonThemeData(
|
|
|
|
|
backgroundColor: AppConfig.primaryColor,
|
|
|
|
|
floatingActionButtonTheme: FloatingActionButtonThemeData(
|
|
|
|
|
backgroundColor: AppConfig.chatColor,
|
|
|
|
|
foregroundColor: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
inputDecorationTheme: InputDecorationTheme(
|
|
|
|
@ -172,13 +173,13 @@ abstract class FluffyThemes {
|
|
|
|
|
enabledBorder: OutlineInputBorder(
|
|
|
|
|
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
|
|
|
|
borderSide: BorderSide(
|
|
|
|
|
color: FluffyThemes.darken(AppConfig.primaryColor, .31),
|
|
|
|
|
color: FluffyThemes.darken(AppConfig.chatColor, .31),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
elevatedButtonTheme: ElevatedButtonThemeData(
|
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|
|
primary: AppConfig.primaryColor,
|
|
|
|
|
primary: AppConfig.chatColor,
|
|
|
|
|
onPrimary: Colors.white,
|
|
|
|
|
minimumSize: const Size.fromHeight(48),
|
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
@ -187,7 +188,8 @@ abstract class FluffyThemes {
|
|
|
|
|
padding: const EdgeInsets.all(12),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
snackBarTheme: const SnackBarThemeData(behavior: SnackBarBehavior.floating),
|
|
|
|
|
snackBarTheme:
|
|
|
|
|
const SnackBarThemeData(behavior: SnackBarBehavior.floating),
|
|
|
|
|
appBarTheme: const AppBarTheme(
|
|
|
|
|
elevation: 6,
|
|
|
|
|
systemOverlayStyle: SystemUiOverlayStyle.light,
|
|
|
|
|