Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-25 12:15:38 +08:00
parent 86bbdcc90c
commit 525dce989b
107 changed files with 374 additions and 490 deletions

View File

@@ -15,13 +15,13 @@ class LiveSearchChildController
@override
void checkIsEnd(int length) {
switch (searchType) {
case LiveSearchType.room:
case .room:
if (controller.counts.first != -1 &&
length >= controller.counts.first) {
isEnd = true;
}
break;
case LiveSearchType.user:
case .user:
if (controller.counts[1] != -1 && length >= controller.counts[1]) {
isEnd = true;
}
@@ -32,10 +32,10 @@ class LiveSearchChildController
@override
List? getDataList(response) {
switch (searchType) {
case LiveSearchType.room:
case .room:
controller.counts[searchType.index] = response.room?.totalRoom ?? 0;
return response.room?.list;
case LiveSearchType.user:
case .user:
controller.counts[searchType.index] = response.user?.totalUser ?? 0;
return response.user?.list;
}