@ -4,51 +4,10 @@ class DarkAppTheme {
|
||||
static const Color marianumRed = Color.fromARGB(255, 153, 51, 51);
|
||||
|
||||
static final theme = ThemeData(
|
||||
useMaterial3: false,
|
||||
brightness: Brightness.dark,
|
||||
primaryColor: marianumRed,
|
||||
hintColor: marianumRed,
|
||||
colorScheme: const ColorScheme(
|
||||
colorScheme: ColorScheme.fromSeed(
|
||||
seedColor: marianumRed,
|
||||
brightness: Brightness.dark,
|
||||
|
||||
surface: Colors.black54,
|
||||
onSurface: Colors.white,
|
||||
|
||||
primary: marianumRed,
|
||||
onPrimary: Colors.white,
|
||||
|
||||
secondary: Colors.grey,
|
||||
onSecondary: Colors.white,
|
||||
|
||||
background: Colors.black26,
|
||||
onBackground: Colors.white,
|
||||
|
||||
error: marianumRed,
|
||||
onError: marianumRed,
|
||||
),
|
||||
inputDecorationTheme: const InputDecorationTheme(
|
||||
border: UnderlineInputBorder(borderSide: BorderSide(color: marianumRed)),
|
||||
),
|
||||
appBarTheme: const AppBarTheme(
|
||||
backgroundColor: marianumRed,
|
||||
),
|
||||
progressIndicatorTheme: const ProgressIndicatorThemeData(
|
||||
color: marianumRed,
|
||||
),
|
||||
iconButtonTheme: IconButtonThemeData(
|
||||
style: ButtonStyle(
|
||||
textStyle: MaterialStateProperty.all(const TextStyle(color: Colors.white)),
|
||||
backgroundColor: MaterialStateProperty.all(Colors.white),
|
||||
)
|
||||
),
|
||||
checkboxTheme: CheckboxThemeData(
|
||||
fillColor: MaterialStateProperty.resolveWith((states) => states.contains(MaterialState.selected) ? marianumRed : Colors.transparent),
|
||||
),
|
||||
textButtonTheme: TextButtonThemeData(
|
||||
style: TextButton.styleFrom(
|
||||
foregroundColor: Colors.white,
|
||||
backgroundColor: marianumRed.withOpacity(0.5),
|
||||
),
|
||||
),
|
||||
primaryColor: marianumRed,
|
||||
);
|
||||
}
|
@ -4,39 +4,10 @@ class LightAppTheme {
|
||||
static const Color marianumRed = Color.fromARGB(255, 153, 51, 51);
|
||||
|
||||
static final theme = ThemeData(
|
||||
useMaterial3: false,
|
||||
brightness: Brightness.light,
|
||||
primaryColor: marianumRed,
|
||||
|
||||
colorScheme: const ColorScheme(
|
||||
brightness: Brightness.light,
|
||||
|
||||
surface: Colors.white,
|
||||
onSurface: Colors.black,
|
||||
|
||||
secondary: Colors.grey,
|
||||
onSecondary: Colors.white,
|
||||
|
||||
primary: marianumRed,
|
||||
onPrimary: Colors.white,
|
||||
|
||||
background: Colors.white,
|
||||
onBackground: Colors.black,
|
||||
|
||||
error: marianumRed,
|
||||
onError: marianumRed,
|
||||
),
|
||||
inputDecorationTheme: const InputDecorationTheme(
|
||||
border: UnderlineInputBorder(borderSide: BorderSide(color: marianumRed)),
|
||||
),
|
||||
appBarTheme: const AppBarTheme(
|
||||
backgroundColor: marianumRed,
|
||||
),
|
||||
progressIndicatorTheme: const ProgressIndicatorThemeData(
|
||||
color: marianumRed,
|
||||
),
|
||||
checkboxTheme: CheckboxThemeData(
|
||||
fillColor: MaterialStateProperty.resolveWith((states) => states.contains(MaterialState.selected) ? marianumRed : Colors.transparent),
|
||||
),
|
||||
colorScheme: ColorScheme.fromSeed(seedColor: marianumRed),
|
||||
floatingActionButtonTheme: const FloatingActionButtonThemeData(
|
||||
foregroundColor: Colors.white
|
||||
)
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user