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((_) { WidgetsBinding.instance.addPostFrameCallback((_) {
print("============================================================="); if (ref.read(prefsChangeNotifierProvider).enableSystemBrightness) {
print("colorTheme: $colorTheme"); ref.read(colorThemeProvider.notifier).state =
print("============================================================="); StackColors.fromStackColorTheme(colorTheme);
}
ref.read(colorThemeProvider.notifier).state =
StackColors.fromStackColorTheme(colorTheme);
}); });
}; };