From 6f4866ef639882f2c3648c7f3b15128f011da8da Mon Sep 17 00:00:00 2001 From: Benjamin Halko Date: Wed, 20 Sep 2023 20:03:15 -0700 Subject: [PATCH] fix: default theme not following system (#1288) --- 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,