mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-29 23:05:55 +08:00
@@ -44,9 +44,9 @@ class RcmdController extends CommonListController {
|
||||
}
|
||||
|
||||
@override
|
||||
Future onRefresh() async {
|
||||
Future onRefresh() {
|
||||
currentPage = 0;
|
||||
isEnd = false;
|
||||
await queryData();
|
||||
return queryData();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,9 +33,7 @@ class _RcmdPageState extends CommonPageState<RcmdPage, RcmdController>
|
||||
margin: const EdgeInsets.symmetric(horizontal: StyleString.safeSpace),
|
||||
decoration: const BoxDecoration(borderRadius: StyleString.mdRadius),
|
||||
child: refreshIndicator(
|
||||
onRefresh: () async {
|
||||
await controller.onRefresh();
|
||||
},
|
||||
onRefresh: controller.onRefresh,
|
||||
child: CustomScrollView(
|
||||
controller: controller.scrollController,
|
||||
physics: const AlwaysScrollableScrollPhysics(),
|
||||
|
||||
Reference in New Issue
Block a user