feat: later page: multi select

feat: fav detail page: multi select

opt: reply item

opt: load more

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-28 20:53:52 +08:00
parent 665dd8b92a
commit 12818ae415
51 changed files with 988 additions and 759 deletions

View File

@@ -21,7 +21,7 @@ abstract class CommonController extends GetxController {
return false;
}
void handleSuccess(List currentList, List dataList) {}
// void handleSuccess(List currentList, List dataList) {}
Future queryData([bool isRefresh = true]) async {
if (isLoading || (isRefresh.not && isEnd)) return;
@@ -29,6 +29,7 @@ abstract class CommonController extends GetxController {
LoadingState response = await customGetData();
if (response is Success) {
if (!customHandleResponse(response)) {
isEnd = response.response.isEmpty;
List currentList = loadingState.value is Success
? (loadingState.value as Success).response
: [];
@@ -38,7 +39,7 @@ abstract class CommonController extends GetxController {
? LoadingState.success(handleList)
: response
: LoadingState.success(currentList + response.response);
handleSuccess(currentList, response.response);
// handleSuccess(currentList, response.response);
}
currentPage++;
} else {