Add a button to show system status bar (#417)

This commit is contained in:
角砂糖
2025-06-23 19:00:04 +08:00
committed by GitHub
parent 8eda8adcc8
commit 058fde3f5a
5 changed files with 18 additions and 2 deletions

View File

@@ -164,7 +164,9 @@ class _ReaderState extends State<Reader>
}
mode = ReaderMode.fromKey(appdata.settings['readerMode']);
history = widget.history;
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive);
if (!appdata.settings['showSystemStatusBar']) {
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive);
}
if (appdata.settings['enableTurnPageByVolumeKey']) {
handleVolumeEvent();
}