@@ -5,16 +5,16 @@ import 'colors.dart';
55class AppThemes {
66 AppThemes ._();
77
8- static final lightTheme = ThemeData .light ().copyWith (
9- scaffoldBackgroundColor: lightBGColor ,
8+ static final darkTheme = ThemeData .dark ().copyWith (
9+ scaffoldBackgroundColor: darkBGColor ,
1010 visualDensity: VisualDensity .adaptivePlatformDensity,
1111 bottomSheetTheme: const BottomSheetThemeData (
12- backgroundColor: lightColor ,
13- modalBackgroundColor: lightColor ,
12+ backgroundColor: darkColor2 ,
13+ modalBackgroundColor: darkColor2 ,
1414 ),
15- dialogBackgroundColor: lightBGColor ,
15+ dialogBackgroundColor: darkColor2 ,
1616 popupMenuTheme: const PopupMenuThemeData (
17- color: lightColor ,
17+ color: darkColor2 ,
1818 ),
1919 elevatedButtonTheme: ElevatedButtonThemeData (
2020 style: ButtonStyle (
@@ -23,51 +23,50 @@ class AppThemes {
2323 ),
2424 textButtonTheme: TextButtonThemeData (
2525 style: ButtonStyle (
26- foregroundColor: MaterialStateProperty .all (darkColor ),
26+ foregroundColor: MaterialStateProperty .all (lightColor ),
2727 ),
2828 ),
2929 appBarTheme: const AppBarTheme (
30- backgroundColor: lightBGColor ,
31- elevation: 0 .0 ,
30+ backgroundColor: darkColor2 ,
31+ elevation: 2 .0 ,
3232 titleTextStyle: TextStyle (
33- color: darkColor ,
33+ color: lightColor ,
3434 fontSize: 20.0 ,
3535 fontWeight: FontWeight .bold,
3636 ),
3737 iconTheme: IconThemeData (
38- color: darkColor ,
38+ color: lightColor ,
3939 ),
4040 ),
4141 iconTheme: const IconThemeData (
42- color: darkColor ,
42+ color: lightColor ,
4343 ),
4444 textTheme: const TextTheme (
45- bodyText1: TextStyle (color: darkColor),
46- bodyText2: TextStyle (color: darkColor),
47- subtitle1: TextStyle (color: darkColor),
48- subtitle2: TextStyle (color: darkColor),
49- caption: TextStyle (color: darkColor),
50- headline1: TextStyle (color: darkColor),
51- headline2: TextStyle (color: darkColor),
52- headline3: TextStyle (color: darkColor),
53- headline4: TextStyle (color: darkColor),
54- headline5: TextStyle (color: darkColor),
55- headline6: TextStyle (color: darkColor),
56- button: TextStyle (color: darkColor),
57- overline: TextStyle (color: darkColor),
45+ bodyLarge: TextStyle (color: lightColor),
46+ bodyMedium: TextStyle (color: lightColor),
47+ bodySmall: TextStyle (color: lightColor),
48+ titleLarge: TextStyle (color: lightColor),
49+ titleMedium: TextStyle (color: lightColor),
50+ titleSmall: TextStyle (color: lightColor),
51+ displayLarge: TextStyle (color: lightColor),
52+ displayMedium: TextStyle (color: lightColor),
53+ displaySmall: TextStyle (color: lightColor),
54+ labelLarge: TextStyle (color: lightColor),
55+ labelMedium: TextStyle (color: lightColor),
56+ labelSmall: TextStyle (color: lightColor),
5857 ),
5958 );
6059
61- static final darkTheme = ThemeData .dark ().copyWith (
62- scaffoldBackgroundColor: darkBGColor ,
60+ static final lightTheme = ThemeData .light ().copyWith (
61+ scaffoldBackgroundColor: lightBGColor ,
6362 visualDensity: VisualDensity .adaptivePlatformDensity,
6463 bottomSheetTheme: const BottomSheetThemeData (
65- backgroundColor: darkColor2 ,
66- modalBackgroundColor: darkColor2 ,
64+ backgroundColor: lightColor ,
65+ modalBackgroundColor: lightColor ,
6766 ),
68- dialogBackgroundColor: darkColor2 ,
67+ dialogBackgroundColor: lightBGColor ,
6968 popupMenuTheme: const PopupMenuThemeData (
70- color: darkColor2 ,
69+ color: lightColor ,
7170 ),
7271 elevatedButtonTheme: ElevatedButtonThemeData (
7372 style: ButtonStyle (
@@ -76,38 +75,37 @@ class AppThemes {
7675 ),
7776 textButtonTheme: TextButtonThemeData (
7877 style: ButtonStyle (
79- foregroundColor: MaterialStateProperty .all (lightColor ),
78+ foregroundColor: MaterialStateProperty .all (darkColor ),
8079 ),
8180 ),
8281 appBarTheme: const AppBarTheme (
83- backgroundColor: darkBGColor ,
84- elevation: 0 .0 ,
82+ backgroundColor: lightColor ,
83+ elevation: 2 .0 ,
8584 titleTextStyle: TextStyle (
86- color: lightColor ,
85+ color: darkColor ,
8786 fontSize: 20.0 ,
8887 fontWeight: FontWeight .bold,
8988 ),
9089 iconTheme: IconThemeData (
91- color: lightColor ,
90+ color: darkColor ,
9291 ),
9392 ),
9493 iconTheme: const IconThemeData (
95- color: lightColor ,
94+ color: darkColor ,
9695 ),
9796 textTheme: const TextTheme (
98- bodyText1: TextStyle (color: lightColor),
99- bodyText2: TextStyle (color: lightColor),
100- subtitle1: TextStyle (color: lightColor),
101- subtitle2: TextStyle (color: lightColor),
102- caption: TextStyle (color: lightColor),
103- headline1: TextStyle (color: lightColor),
104- headline2: TextStyle (color: lightColor),
105- headline3: TextStyle (color: lightColor),
106- headline4: TextStyle (color: lightColor),
107- headline5: TextStyle (color: lightColor),
108- headline6: TextStyle (color: lightColor),
109- button: TextStyle (color: lightColor),
110- overline: TextStyle (color: lightColor),
97+ bodyLarge: TextStyle (color: darkColor),
98+ bodyMedium: TextStyle (color: darkColor),
99+ bodySmall: TextStyle (color: darkColor),
100+ titleLarge: TextStyle (color: darkColor),
101+ titleMedium: TextStyle (color: darkColor),
102+ titleSmall: TextStyle (color: darkColor),
103+ displayLarge: TextStyle (color: darkColor),
104+ displayMedium: TextStyle (color: darkColor),
105+ displaySmall: TextStyle (color: darkColor),
106+ labelLarge: TextStyle (color: darkColor),
107+ labelMedium: TextStyle (color: darkColor),
108+ labelSmall: TextStyle (color: darkColor),
111109 ),
112110 );
113111}
0 commit comments