How to detect which index is visible?
Closed this issue · 2 comments
desmeit commented
Is there a way to detect which Item is visible if InfiniteListItems has different sizes?
TatsuUkraine commented
You can use flutter for that I think, or maybe a package that will report whenever widget will be visible within the viewport
pickywawa commented
If you use sticky header you can :
`
InfiniteListItem(
headerStateBuilder: (context, state) {
if (state.sticky) {
Future(() => // call index change function);
}
return headerWidget;
}
)
`