feat: 动态页返回顶部&双击刷新

This commit is contained in:
guozhigq
2023-07-10 13:54:03 +08:00
parent 98ef6876ce
commit b1cd8bbed3
3 changed files with 38 additions and 5 deletions

View File

@ -117,11 +117,7 @@ class _DynamicsPageState extends State<DynamicsPage>
),
),
body: RefreshIndicator(
onRefresh: () async {
_dynamicsController.page = 1;
_dynamicsController.queryFollowUp();
await _dynamicsController.queryFollowDynamic();
},
onRefresh: () => _dynamicsController.onRefresh(),
child: CustomScrollView(
controller: _dynamicsController.scrollController,
slivers: [