mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-17 09:54:19 +01:00
change bottom status bar color
This commit is contained in:
@@ -95,6 +95,13 @@ Future<void> 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<MyApp> {
|
||||
RouterPath.AUTH_LOGS: (context) => AuthLogsRouter(),
|
||||
};
|
||||
|
||||
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
|
||||
systemNavigationBarColor: lightTheme.scaffoldBackgroundColor,
|
||||
));
|
||||
|
||||
return MultiProvider(
|
||||
providers: [
|
||||
ListenableProvider<WebProvider>.value(
|
||||
|
||||
@@ -119,22 +119,11 @@ class _IndexRouter extends CustState<IndexRouter>
|
||||
},
|
||||
child: Scaffold(
|
||||
key: _scaffoldKey,
|
||||
body: AnnotatedRegion<SystemUiOverlayStyle>(
|
||||
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),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user