opt: search ctr

related #137

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-10 17:41:46 +08:00
parent 96fb17e6b1
commit 7b3d132802
3 changed files with 18 additions and 15 deletions

View File

@@ -84,8 +84,7 @@ class _SearchResultPageState extends State<SearchResultPage>
.map(
(item) => Obx(
() {
int count = _searchResultController
.count[SearchType.values.indexOf(item)];
int count = _searchResultController.count[item.index];
return Tab(
text:
'${item.label}${count != -1 ? ' ${count > 99 ? '99+' : count}' : ''}');