From 461248df2d41086aac1efb7bff7ba7cfab46879c Mon Sep 17 00:00:00 2001 From: Benjamin Halko Date: Wed, 20 Sep 2023 19:21:38 -0700 Subject: [PATCH] fix: default theme no following system --- lib/ui/theme/dynamic_theme_builder.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/theme/dynamic_theme_builder.dart b/lib/ui/theme/dynamic_theme_builder.dart index 5fcd8831ae..233c78b562 100644 --- a/lib/ui/theme/dynamic_theme_builder.dart +++ b/lib/ui/theme/dynamic_theme_builder.dart @@ -90,7 +90,7 @@ class _DynamicThemeBuilderState extends State with WidgetsB 4: darkCustomTheme, 5: darkDynamicTheme, }, - fallbackTheme: brightness == Brightness.light ? lightCustomTheme : darkCustomTheme, + fallbackTheme: PlatformDispatcher.instance.platformBrightness == Brightness.light ? lightCustomTheme : darkCustomTheme, ), builder: (context, theme) => MaterialApp( debugShowCheckedModeBanner: false,