I have a NestedScrollView
that houses a SliverAppBar
with a TabBarView
and the tabs consist of an infinite loading list each. Right now I only have one ScrollController
attached to NestedScrollView
, and list widgets read the scroll position of this controller.
The infinite loading logic uses controller.position.extentAfter
to decide when to fetch data from the API. But with multiple tabs, I get the error
ScrollController attached to multiple scroll views.
I tried reading about controller.positions
but couldn't make sense of the 2 line documentation that's available. My question is, is it possible to access scroll positions per page in a TabBarView
or should I just use separate ScrollController
for each of those and forget about the correct scrolling of slivers?