change bottom status bar color

This commit is contained in:
DASHU
2025-01-19 21:52:20 +08:00
parent 19c929dc0a
commit a3407ba841
2 changed files with 16 additions and 16 deletions

View File

@@ -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(