fix: 视频详情页评论下拉刷新 issues #486
This commit is contained in:
@ -62,6 +62,7 @@ class VideoReplyController extends GetxController {
|
||||
noMore.value = '';
|
||||
}
|
||||
if (noMore.value == '没有更多了') {
|
||||
isLoadingMore = false;
|
||||
return;
|
||||
}
|
||||
final res = await ReplyHttp.replyList(
|
||||
|
@ -134,13 +134,13 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
|
||||
super.build(context);
|
||||
return RefreshIndicator(
|
||||
onRefresh: () async {
|
||||
_videoReplyController.currentPage = 0;
|
||||
return await _videoReplyController.queryReplyList();
|
||||
return await _videoReplyController.queryReplyList(type: 'init');
|
||||
},
|
||||
child: Stack(
|
||||
children: [
|
||||
CustomScrollView(
|
||||
controller: scrollController,
|
||||
physics: const AlwaysScrollableScrollPhysics(),
|
||||
key: const PageStorageKey<String>('评论'),
|
||||
slivers: <Widget>[
|
||||
SliverPersistentHeader(
|
||||
|
Reference in New Issue
Block a user