Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2026-01-02 12:05:31 +08:00
parent 80e007bac6
commit 041af37bb0
67 changed files with 775 additions and 838 deletions

View File

@@ -26,16 +26,18 @@ class RcmdController extends CommonListController {
@override
void handleListResponse(List dataList) {
if (enableSaveLastData && page == 0 && loadingState.value.isSuccess) {
final currentList = loadingState.value.data;
if (currentList != null && currentList.isNotEmpty) {
if (savedRcmdTip) {
lastRefreshAt = dataList.length;
if (enableSaveLastData && page == 0) {
if (loadingState.value case Success(:final response)) {
if (response != null && response.isNotEmpty) {
if (savedRcmdTip) {
lastRefreshAt = dataList.length;
}
if (response.length > 200) {
dataList.addAll(response.take(50));
} else {
dataList.addAll(response);
}
}
if (currentList.length > 200) {
currentList.length = 50;
}
dataList.addAll(currentList);
}
}
}