How do I get the current sliver item that is visible/scrolled inside a Flutter CustomScrollView
?
My CustomScrollView
has multiple SliverGrid
and SliverToBoxAdapter
widgets inside. I would like to know which `SliverGrid' is currently visible (scrolled to).
child: CustomScrollView(
slivers: <Widget>[
SliverToBoxAdapter(),
SliverGrid(),
SliverToBoxAdapter(),
SliverGrid(),
...
],
)
I would also like to know the scroll position inside the currently visible SliverGrid
.
you can try this to get the current visible widget, inview_notifier_list: