mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-22 00:58:40 +00:00
@@ -36,6 +36,7 @@ abstract class CommonController<R, T> extends GetxController
|
||||
bool isLoading = false;
|
||||
late bool isEnd = false;
|
||||
Rx<LoadingState> get loadingState;
|
||||
bool? isReply;
|
||||
|
||||
Future<LoadingState<R>> customGetData();
|
||||
|
||||
@@ -66,6 +67,8 @@ abstract class CommonController<R, T> extends GetxController
|
||||
isEnd = true;
|
||||
if (isRefresh) {
|
||||
loadingState.value = LoadingState<List<T>?>.success(dataList);
|
||||
} else if (isReply == true) {
|
||||
loadingState.refresh();
|
||||
}
|
||||
isLoading = false;
|
||||
return;
|
||||
|
||||
@@ -35,6 +35,9 @@ abstract class ReplyController<R> extends CommonListController<R, ReplyInfo> {
|
||||
late Rx<Mode> mode = Mode.MAIN_LIST_HOT.obs;
|
||||
late bool hasUpTop = false;
|
||||
|
||||
@override
|
||||
bool? get isReply => true;
|
||||
|
||||
late final antiGoodsReply = GStorage.antiGoodsReply;
|
||||
|
||||
// comment antifraud
|
||||
|
||||
Reference in New Issue
Block a user