@@ -87,15 +87,17 @@ class AppThemeController extends GetxController {
8787 iconTheme: const IconThemeData (color: ColorValues .lightGrayColor),
8888 scaffoldBackgroundColor: ColorValues .lightBgColor,
8989 appBarTheme: const AppBarTheme (backgroundColor: ColorValues .lightBgColor),
90- bottomAppBarColor : ColorValues .lightDialogColor,
90+ cardColor : ColorValues .lightDialogColor,
9191 shadowColor: ColorValues .shadowColor.withAlpha (12 ),
9292 cardTheme: const CardTheme (color: ColorValues .lightDialogColor),
9393 dialogTheme:
9494 const DialogTheme (backgroundColor: ColorValues .lightDialogColor),
9595 dialogBackgroundColor: ColorValues .lightDialogColor,
96- errorColor: ColorValues .errorColor,
9796 bottomSheetTheme: const BottomSheetThemeData ().copyWith (
9897 backgroundColor: ColorValues .lightDialogColor,
98+ surfaceTintColor: ColorValues .lightDialogColor,
99+ modalBackgroundColor: ColorValues .lightDialogColor,
100+ modalBarrierColor: ColorValues .blackColor.withOpacity (0.5 ),
99101 ),
100102 dividerColor: ColorValues .lightDividerColor,
101103 disabledColor: ColorValues .lightGrayColor,
@@ -113,7 +115,6 @@ class AppThemeController extends GetxController {
113115 elevation: MaterialStateProperty .all (0.0 ),
114116 ),
115117 ),
116- fontFamily: kDefaultFontFamily,
117118 inputDecorationTheme: InputDecorationTheme (
118119 filled: true ,
119120 fillColor: ColorValues .lightDialogColor,
@@ -176,17 +177,21 @@ class AppThemeController extends GetxController {
176177 borderRadius: BorderRadius .circular (Dimens .four),
177178 ),
178179 ),
180+ fontFamily: kDefaultFontFamily,
179181 textTheme: const TextTheme ().copyWith (
180- bodyText1: const TextStyle (
182+ bodyLarge: const TextStyle (
183+ color: ColorValues .lightBodyTextColor,
184+ ),
185+ bodyMedium: const TextStyle (
181186 color: ColorValues .lightBodyTextColor,
182187 ),
183- bodyText2 : const TextStyle (
188+ bodySmall : const TextStyle (
184189 color: ColorValues .lightBodyTextColor,
185190 ),
186- subtitle1 : TextStyle (
191+ titleMedium : TextStyle (
187192 color: ColorValues .lightBodyTextColor.withAlpha (180 ),
188193 ),
189- subtitle2 : TextStyle (
194+ titleSmall : TextStyle (
190195 color: ColorValues .lightBodyTextColor.withAlpha (140 ),
191196 ),
192197 ),
@@ -204,14 +209,16 @@ class AppThemeController extends GetxController {
204209 scaffoldBackgroundColor: ColorValues .darkBgColor,
205210 shadowColor: ColorValues .shadowColor.withAlpha (12 ),
206211 appBarTheme: const AppBarTheme (backgroundColor: ColorValues .darkBgColor),
207- bottomAppBarColor : ColorValues .darkDialogColor,
212+ cardColor : ColorValues .darkDialogColor,
208213 cardTheme: const CardTheme (color: ColorValues .darkDialogColor),
209214 dialogTheme:
210215 const DialogTheme (backgroundColor: ColorValues .darkDialogColor),
211216 dialogBackgroundColor: ColorValues .darkDialogColor,
212- errorColor: ColorValues .errorColor,
213217 bottomSheetTheme: const BottomSheetThemeData ().copyWith (
214218 backgroundColor: ColorValues .darkDialogColor,
219+ surfaceTintColor: ColorValues .darkDialogColor,
220+ modalBackgroundColor: ColorValues .darkDialogColor,
221+ modalBarrierColor: ColorValues .blackColor.withOpacity (0.5 ),
215222 ),
216223 dividerColor: ColorValues .darkDividerColor,
217224 disabledColor: ColorValues .darkGrayColor,
@@ -229,7 +236,6 @@ class AppThemeController extends GetxController {
229236 elevation: MaterialStateProperty .all (0.0 ),
230237 ),
231238 ),
232- fontFamily: kDefaultFontFamily,
233239 inputDecorationTheme: InputDecorationTheme (
234240 filled: true ,
235241 fillColor: ColorValues .darkDialogColor,
@@ -292,17 +298,21 @@ class AppThemeController extends GetxController {
292298 borderRadius: BorderRadius .circular (Dimens .four),
293299 ),
294300 ),
301+ fontFamily: kDefaultFontFamily,
295302 textTheme: const TextTheme ().copyWith (
296- bodyText1: const TextStyle (
303+ bodyLarge: const TextStyle (
304+ color: ColorValues .darkBodyTextColor,
305+ ),
306+ bodyMedium: const TextStyle (
297307 color: ColorValues .darkBodyTextColor,
298308 ),
299- bodyText2 : const TextStyle (
309+ bodySmall : const TextStyle (
300310 color: ColorValues .darkBodyTextColor,
301311 ),
302- subtitle1 : TextStyle (
312+ titleMedium : TextStyle (
303313 color: ColorValues .darkBodyTextColor.withAlpha (180 ),
304314 ),
305- subtitle2 : TextStyle (
315+ titleSmall : TextStyle (
306316 color: ColorValues .darkBodyTextColor.withAlpha (140 ),
307317 ),
308318 ),
0 commit comments