fix: Prevent content from being overlapped by system navigation bar

This commit is contained in:
Alberto Ponces 2022-09-24 12:06:36 +01:00
parent 2a0ea78d7f
commit 4d82ff3011

View File

@ -32,7 +32,6 @@ class NavigationViewModel extends IndexTrackingViewModel {
await prefs.setBool('useDarkTheme', isDark); await prefs.setBool('useDarkTheme', isDark);
await DynamicTheme.of(context)!.setTheme(isDark ? 1 : 0); await DynamicTheme.of(context)!.setTheme(isDark ? 1 : 0);
} }
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
SystemChrome.setSystemUIOverlayStyle( SystemChrome.setSystemUIOverlayStyle(
SystemUiOverlayStyle( SystemUiOverlayStyle(
systemNavigationBarColor: Colors.transparent, systemNavigationBarColor: Colors.transparent,