Update navigation_screen.dart

This commit is contained in:
Márton Kiss 2023-06-10 13:59:03 +02:00 committed by GitHub
parent 7adec7dfa5
commit 67aea46c06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,7 +171,7 @@ class NavigationScreenState extends State<NavigationScreen>
}
@override
void PlatformBrightness() {
void didChangePlatformBrightness() {
if (settings.theme == ThemeMode.system) {
Brightness? brightness = WidgetsBinding.instance.window.platformBrightness;
Provider.of<ThemeModeObserver>(context, listen: false).changeTheme(