feat: home: show unread badge

Closes #107

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-07 17:00:58 +08:00
parent 30a5889215
commit c1ce704e4e
10 changed files with 484 additions and 367 deletions

View File

@@ -27,7 +27,7 @@ class HomeController extends GetxController with GetTickerProviderStateMixin {
late bool enableSearchWord;
late RxString defaultSearch = ''.obs;
late int lateCheckAt = 0;
late int lateCheckSearchAt = 0;
@override
void onInit() {
@@ -40,7 +40,7 @@ class HomeController extends GetxController with GetTickerProviderStateMixin {
enableSearchWord = GStorage.setting
.get(SettingBoxKey.enableSearchWord, defaultValue: true);
if (enableSearchWord) {
lateCheckAt = DateTime.now().millisecondsSinceEpoch;
lateCheckSearchAt = DateTime.now().millisecondsSinceEpoch;
querySearchDefault();
}
useSideBar =