diff --git a/lib/ui/views/navigation/navigation_viewmodel.dart b/lib/ui/views/navigation/navigation_viewmodel.dart index 434380d426..18e86004a0 100644 --- a/lib/ui/views/navigation/navigation_viewmodel.dart +++ b/lib/ui/views/navigation/navigation_viewmodel.dart @@ -29,10 +29,10 @@ class NavigationViewModel extends IndexTrackingViewModel { await prefs.setBool('useDarkTheme', isDark); await DynamicTheme.of(context)!.setTheme(isDark ? 1 : 0); } + SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge); SystemChrome.setSystemUIOverlayStyle( SystemUiOverlayStyle( - systemNavigationBarColor: - DynamicTheme.of(context)!.theme.colorScheme.surface, + systemNavigationBarColor: Colors.transparent, systemNavigationBarIconBrightness: DynamicTheme.of(context)!.theme.brightness == Brightness.light ? Brightness.dark diff --git a/lib/ui/views/settings/settings_viewmodel.dart b/lib/ui/views/settings/settings_viewmodel.dart index 7bb9f73db9..bcc595d1ed 100644 --- a/lib/ui/views/settings/settings_viewmodel.dart +++ b/lib/ui/views/settings/settings_viewmodel.dart @@ -56,12 +56,6 @@ class SettingsViewModel extends BaseViewModel { } else { await DynamicTheme.of(context)!.setTheme(value ? 3 : 1); } - SystemChrome.setSystemUIOverlayStyle( - SystemUiOverlayStyle( - systemNavigationBarColor: - DynamicTheme.of(context)!.theme.colorScheme.surface, - ), - ); notifyListeners(); } @@ -79,8 +73,6 @@ class SettingsViewModel extends BaseViewModel { } SystemChrome.setSystemUIOverlayStyle( SystemUiOverlayStyle( - systemNavigationBarColor: - DynamicTheme.of(context)!.theme.colorScheme.surface, systemNavigationBarIconBrightness: value ? Brightness.light : Brightness.dark, ),