diff --git a/lib/main.dart b/lib/main.dart index 736b7b8..144283a 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -95,6 +95,13 @@ Future main() async { databaseFactory = databaseFactoryFfi; } + try { + await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, + overlays: [SystemUiOverlay.top, SystemUiOverlay.bottom]); + } catch (e) { + print(e); + } + await doInit(); mediaDataCache = MediaDataCache(); @@ -162,6 +169,10 @@ class _MyApp extends State { RouterPath.AUTH_LOGS: (context) => AuthLogsRouter(), }; + SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( + systemNavigationBarColor: lightTheme.scaffoldBackgroundColor, + )); + return MultiProvider( providers: [ ListenableProvider.value( diff --git a/lib/router/index/index_router.dart b/lib/router/index/index_router.dart index 1b500b2..9a7e62a 100644 --- a/lib/router/index/index_router.dart +++ b/lib/router/index/index_router.dart @@ -119,22 +119,11 @@ class _IndexRouter extends CustState }, child: Scaffold( key: _scaffoldKey, - body: AnnotatedRegion( - value: SystemUiOverlayStyle.light.copyWith( - statusBarColor: themeData.scaffoldBackgroundColor, - systemNavigationBarIconBrightness: Brightness.dark, - statusBarIconBrightness: Brightness.dark, - statusBarBrightness: Brightness.light, - ), - child: SafeArea( - bottom: true, - child: Column( - children: [ - Expanded(child: main), - IndexWebBottomComponent(showControl), - ], - ), - ), + body: Column( + children: [ + Expanded(child: main), + IndexWebBottomComponent(showControl), + ], ), ), );