quick fix

This commit is contained in:
julian 2023-03-20 18:08:45 -06:00
parent 891f15cd58
commit bf4c44ad1b

View file

@ -395,12 +395,10 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
}
WidgetsBinding.instance.addPostFrameCallback((_) {
print("=============================================================");
print("colorTheme: $colorTheme");
print("=============================================================");
ref.read(colorThemeProvider.notifier).state =
StackColors.fromStackColorTheme(colorTheme);
if (ref.read(prefsChangeNotifierProvider).enableSystemBrightness) {
ref.read(colorThemeProvider.notifier).state =
StackColors.fromStackColorTheme(colorTheme);
}
});
};