我正在将NestedScrollView用于快照行为。
小部件树:-
NestedScrollView => TabView => CustomScrollView => SliverList
有关添加滚动控制器浮动行为时的更多负载,请停止工作
CustomScrollView
小部件简单地包装NotificationListener<ScrollUpdateNotification>
。 NotificationListener<ScrollNotification>(
onNotification: (ScrollNotification scrollInfo) {
if (scrollInfo.metrics.pixels ==
scrollInfo.metrics.maxScrollExtent) {
///load next page here
loadMore();
}
},
child: CustomScrollView(
// ...
),
),