mod: add nav/search debounce option

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-04 21:52:28 +08:00
parent f1433c6e9b
commit 1c0bae600f
5 changed files with 26 additions and 4 deletions

View File

@@ -421,6 +421,19 @@ List<SettingsModel> get styleSettings => [
defaultVal: true,
needReboot: true,
),
SettingsModel(
settingsType: SettingsType.sw1tch,
title: '降低收起/展开顶/底栏频率',
leading: const Icon(Icons.vertical_distribute),
setKey: SettingBoxKey.navSearchStreamDebounce,
defaultVal: false,
onChanged: (value) {
try {
Get.find<MainController>().navSearchStreamDebounce = value;
Get.forceAppUpdate();
} catch (_) {}
},
),
SettingsModel(
settingsType: SettingsType.normal,
onTap: (setState) {