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;
|
databaseFactory = databaseFactoryFfi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
|
||||||
|
overlays: [SystemUiOverlay.top, SystemUiOverlay.bottom]);
|
||||||
|
} catch (e) {
|
||||||
|
print(e);
|
||||||
|
}
|
||||||
|
|
||||||
await doInit();
|
await doInit();
|
||||||
|
|
||||||
mediaDataCache = MediaDataCache();
|
mediaDataCache = MediaDataCache();
|
||||||
@@ -162,6 +169,10 @@ class _MyApp extends State<MyApp> {
|
|||||||
RouterPath.AUTH_LOGS: (context) => AuthLogsRouter(),
|
RouterPath.AUTH_LOGS: (context) => AuthLogsRouter(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
|
||||||
|
systemNavigationBarColor: lightTheme.scaffoldBackgroundColor,
|
||||||
|
));
|
||||||
|
|
||||||
return MultiProvider(
|
return MultiProvider(
|
||||||
providers: [
|
providers: [
|
||||||
ListenableProvider<WebProvider>.value(
|
ListenableProvider<WebProvider>.value(
|
||||||
|
|||||||
@@ -119,22 +119,11 @@ class _IndexRouter extends CustState<IndexRouter>
|
|||||||
},
|
},
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
key: _scaffoldKey,
|
key: _scaffoldKey,
|
||||||
body: AnnotatedRegion<SystemUiOverlayStyle>(
|
body: Column(
|
||||||
value: SystemUiOverlayStyle.light.copyWith(
|
children: [
|
||||||
statusBarColor: themeData.scaffoldBackgroundColor,
|
Expanded(child: main),
|
||||||
systemNavigationBarIconBrightness: Brightness.dark,
|
IndexWebBottomComponent(showControl),
|
||||||
statusBarIconBrightness: Brightness.dark,
|
],
|
||||||
statusBarBrightness: Brightness.light,
|
|
||||||
),
|
|
||||||
child: SafeArea(
|
|
||||||
bottom: true,
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
Expanded(child: main),
|
|
||||||
IndexWebBottomComponent(showControl),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user