Skip to content

Commit e828106

Browse files
committed
feat(theme): replace hardcoded FlexScheme.material with dynamic flexScheme
- Updated MaterialApp theme and darkTheme configurations in multiple places - Replaced FlexScheme.material with state.flexScheme for dynamic theming - Maintained consistent changes across different build methods
1 parent 746d750 commit e828106

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/app/view/app.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,13 @@ class _AppViewState extends State<_AppView> {
291291
return MaterialApp(
292292
debugShowCheckedModeBanner: false,
293293
theme: lightTheme(
294-
scheme: FlexScheme.material,
294+
scheme: state.flexScheme,
295295
appTextScaleFactor: state.appTextScaleFactor,
296296
appFontWeight: state.appFontWeight,
297297
fontFamily: state.fontFamily,
298298
),
299299
darkTheme: darkTheme(
300-
scheme: FlexScheme.material,
300+
scheme: state.flexScheme,
301301
appTextScaleFactor: state.appTextScaleFactor,
302302
appFontWeight: state.appFontWeight,
303303
fontFamily: state.fontFamily,
@@ -358,13 +358,13 @@ class _AppViewState extends State<_AppView> {
358358
return MaterialApp(
359359
debugShowCheckedModeBanner: false,
360360
theme: lightTheme(
361-
scheme: FlexScheme.material,
361+
scheme: state.flexScheme,
362362
appTextScaleFactor: state.appTextScaleFactor,
363363
appFontWeight: state.appFontWeight,
364364
fontFamily: state.fontFamily,
365365
),
366366
darkTheme: darkTheme(
367-
scheme: FlexScheme.material,
367+
scheme: state.flexScheme,
368368
appTextScaleFactor: state.appTextScaleFactor,
369369
appFontWeight: state.appFontWeight,
370370
fontFamily: state.fontFamily,
@@ -385,13 +385,13 @@ class _AppViewState extends State<_AppView> {
385385
return MaterialApp(
386386
debugShowCheckedModeBanner: false,
387387
theme: lightTheme(
388-
scheme: FlexScheme.material,
388+
scheme: state.flexScheme,
389389
appTextScaleFactor: state.appTextScaleFactor,
390390
appFontWeight: state.appFontWeight,
391391
fontFamily: state.fontFamily,
392392
),
393393
darkTheme: darkTheme(
394-
scheme: FlexScheme.material,
394+
scheme: state.flexScheme,
395395
appTextScaleFactor: state.appTextScaleFactor,
396396
appFontWeight: state.appFontWeight,
397397
fontFamily: state.fontFamily,
@@ -417,13 +417,13 @@ class _AppViewState extends State<_AppView> {
417417
return MaterialApp(
418418
debugShowCheckedModeBanner: false,
419419
theme: lightTheme(
420-
scheme: FlexScheme.material,
420+
scheme: state.flexScheme,
421421
appTextScaleFactor: state.appTextScaleFactor,
422422
appFontWeight: state.appFontWeight,
423423
fontFamily: state.fontFamily,
424424
),
425425
darkTheme: darkTheme(
426-
scheme: FlexScheme.material,
426+
scheme: state.flexScheme,
427427
appTextScaleFactor: state.appTextScaleFactor,
428428
appFontWeight: state.appFontWeight,
429429
fontFamily: state.fontFamily,

0 commit comments

Comments
 (0)