Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-22 11:16:49 +08:00
parent 17568c8c27
commit bc3ce66322
40 changed files with 135 additions and 146 deletions

View File

@@ -24,25 +24,25 @@ class SSearchController extends GetxController {
int initIndex = 0;
// uid
RxBool showUidBtn = false.obs;
final RxBool showUidBtn = false.obs;
late final digitOnlyRegExp = RegExp(r'^\d+$');
// history
late final RxBool recordSearchHistory = Pref.recordSearchHistory.obs;
final RxBool recordSearchHistory = Pref.recordSearchHistory.obs;
late final RxList<String> historyList;
// suggestion
late final bool searchSuggestion = Pref.searchSuggestion;
final bool searchSuggestion = Pref.searchSuggestion;
StreamController<String>? _ctr;
StreamSubscription<String>? _sub;
late final RxList<SearchSuggestItem> searchSuggestList;
// trending
late final bool enableHotKey = Pref.enableHotKey;
final bool enableHotKey = Pref.enableHotKey;
late final Rx<LoadingState<SearchTrendingData>> loadingState;
// rcmd
late final bool enableSearchRcmd = Pref.enableSearchRcmd;
final bool enableSearchRcmd = Pref.enableSearchRcmd;
late final Rx<LoadingState<SearchRcmdData>> recommendData;
@override