Skip to content

Commit

Permalink
Merge branch 'fix-replyPanelScroll'
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhigq committed Mar 3, 2024
2 parents d804d95 + f81f348 commit c4b3446
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/pages/video/detail/reply/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class VideoReplyController extends GetxController {
noMore.value = '';
}
if (noMore.value == '没有更多了') {
isLoadingMore = false;
return;
}
final res = await ReplyHttp.replyList(
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/video/detail/reply/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c4b3446

Please sign in to comment.