[Android] Turn page by volume keys

This commit is contained in:
2024-11-10 17:50:20 +08:00
parent 160d0df935
commit 64d8bcba9a
6 changed files with 83 additions and 2 deletions

View File

@@ -69,6 +69,14 @@ class _ReaderSettingsState extends State<ReaderSettings> {
widget.onChanged?.call('limitImageWidth');
},
).toSliver(),
if(App.isAndroid)
_SwitchSetting(
title: 'Turn page by volume key'.tl,
settingKey: 'enableTurnPageByVolumeKey',
onChanged: () {
widget.onChanged?.call('enableTurnPageByVolumeKey');
},
).toSliver(),
],
);
}