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