disable search default by def

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-24 20:20:54 +08:00
parent 1a9c8a62f2
commit 4eaf16f500
3 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ class HomeController extends GetxController
final bool useSideBar = Pref.useSideBar;
bool enableSearchWord = Pref.enableSearchWord;
late RxString defaultSearch = ''.obs;
late final RxString defaultSearch = ''.obs;
late int lateCheckSearchAt = 0;
ScrollOrRefreshMixin get controller => tabs[tabController.index].ctr();

View File

@@ -774,7 +774,7 @@ List<SettingsModel> get extraSettings => [
subtitle: '是否展示搜索框默认词',
leading: const Icon(Icons.whatshot_outlined),
setKey: SettingBoxKey.enableSearchWord,
defaultVal: true,
defaultVal: false,
onChanged: (val) {
try {
final controller = Get.find<HomeController>()..enableSearchWord = val;

View File

@@ -628,7 +628,7 @@ abstract class Pref {
_setting.get(SettingBoxKey.scrollThreshold, defaultValue: 50.0);
static bool get enableSearchWord =>
_setting.get(SettingBoxKey.enableSearchWord, defaultValue: true);
_setting.get(SettingBoxKey.enableSearchWord, defaultValue: false);
static bool get useSideBar =>
_setting.get(SettingBoxKey.useSideBar, defaultValue: false);