Add launch configuration, update API keys, and refactor UI components for better structure and performance
This commit is contained in:
@@ -8,7 +8,7 @@ class ThemeProvider extends ChangeNotifier {
|
||||
|
||||
bool get isDarkMode {
|
||||
if (_themeMode == ThemeMode.system) {
|
||||
return WidgetsBinding.instance.window.platformBrightness ==
|
||||
return WidgetsBinding.instance.platformDispatcher.platformBrightness ==
|
||||
Brightness.dark;
|
||||
}
|
||||
return _themeMode == ThemeMode.dark;
|
||||
|
||||
Reference in New Issue
Block a user