在列表视图内部添加滚动控制器时,CustomScrollView的捕捉行为不起作用

问题描述 投票:0回答:1

我正在将NestedScrollView用于快照行为。

小部件树:-

NestedScrollView => TabView => CustomScrollView => SliverList

有关添加滚动控制器浮动行为时的更多负载,请停止工作

flutter flutter-layout
1个回答
0
投票
CustomScrollView小部件简单地包装NotificationListener<ScrollUpdateNotification>

NotificationListener<ScrollNotification>( onNotification: (ScrollNotification scrollInfo) { if (scrollInfo.metrics.pixels == scrollInfo.metrics.maxScrollExtent) { ///load next page here loadMore(); } }, child: CustomScrollView( // ... ), ),

© www.soinside.com 2019 - 2024. All rights reserved.