opt hide top/bottom bar

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-02-18 14:48:42 +08:00
parent a5efca4e1f
commit dfa258b9e6
13 changed files with 157 additions and 224 deletions

View File

@@ -19,7 +19,7 @@ class HomeController extends GetxController
late List<HomeTabType> tabs;
late TabController tabController;
RxBool? showSearchBar;
final bool hideTopBar = !Pref.useSideBar && Pref.hideTopBar;
bool enableSearchWord = Pref.enableSearchWord;
late final RxString defaultSearch = ''.obs;
@@ -36,10 +36,6 @@ class HomeController extends GetxController
void onInit() {
super.onInit();
if (!Pref.useSideBar && Pref.hideTopBar) {
showSearchBar = true.obs;
}
if (enableSearchWord) {
lateCheckSearchAt = DateTime.now().millisecondsSinceEpoch;
querySearchDefault();