From df56f0dfa52216c3adf19e5dca999e7f07385441 Mon Sep 17 00:00:00 2001 From: orz12 Date: Tue, 27 Feb 2024 22:19:42 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E8=AF=84=E8=AE=BA=E8=BF=87=E5=B0=91?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/video/detail/reply/view.dart | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/pages/video/detail/reply/view.dart b/lib/pages/video/detail/reply/view.dart index c5518717..a33fad93 100644 --- a/lib/pages/video/detail/reply/view.dart +++ b/lib/pages/video/detail/reply/view.dart @@ -117,20 +117,18 @@ class _VideoReplyPanelState extends State } } - @override Widget build(BuildContext context) { super.build(context); return RefreshIndicator( onRefresh: () async { - _videoReplyController.currentPage = 0; - _videoReplyController.noMore.value = ''; - await _videoReplyController.queryReplyList(); + await _videoReplyController.queryReplyList(type: 'init'); }, child: Stack( children: [ CustomScrollView( controller: scrollController, + physics: const AlwaysScrollableScrollPhysics(), key: const PageStorageKey('评论'), slivers: [ SliverPersistentHeader( @@ -268,7 +266,10 @@ class _VideoReplyPanelState extends State (value) => { // 完成评论,数据添加 if (value != null && value['data'] != null) - {_videoReplyController.replyList.insert(0, value['data'])} + { + _videoReplyController.replyList + .insert(0, value['data']) + } }, ); },