mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-27 03:28:40 +00:00
@@ -54,7 +54,7 @@ abstract class CommonController<R, T> extends GetxController
|
||||
|
||||
void checkIsEnd(int length) {}
|
||||
|
||||
Future queryData([bool isRefresh = true]) async {
|
||||
Future<void> queryData([bool isRefresh = true]) async {
|
||||
if (isLoading || (isRefresh.not && isEnd)) return;
|
||||
isLoading = true;
|
||||
LoadingState<R> response = await customGetData();
|
||||
|
||||
@@ -159,7 +159,7 @@ abstract class CommonPublishPageState<T extends CommonPublishPage>
|
||||
return false;
|
||||
}
|
||||
|
||||
Future onPublish() async {
|
||||
Future<void> onPublish() async {
|
||||
feedBack();
|
||||
List<Map<String, dynamic>>? pictures;
|
||||
if (pathList.isNotEmpty) {
|
||||
@@ -194,7 +194,7 @@ abstract class CommonPublishPageState<T extends CommonPublishPage>
|
||||
onCustomPublish(message: editController.text, pictures: pictures);
|
||||
}
|
||||
|
||||
Future onCustomPublish({required String message, List? pictures});
|
||||
Future<void> onCustomPublish({required String message, List? pictures});
|
||||
|
||||
void onChooseEmote(emote) {
|
||||
enablePublish.value = true;
|
||||
|
||||
@@ -15,7 +15,7 @@ abstract class CommonSearchController<R, T> extends CommonListController<R, T> {
|
||||
}
|
||||
|
||||
@override
|
||||
Future onRefresh() {
|
||||
Future<void> onRefresh() {
|
||||
if (editController.value.text.isEmpty) {
|
||||
return Future.value();
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ abstract class ReplyController<R> extends CommonListController<R, ReplyInfo> {
|
||||
}
|
||||
|
||||
@override
|
||||
Future onRefresh() {
|
||||
Future<void> onRefresh() {
|
||||
cursorNext = null;
|
||||
paginationReply = null;
|
||||
return super.onRefresh();
|
||||
|
||||
Reference in New Issue
Block a user