TatsuUkraine/flutter_sticky_infinite_list

How to detect which index is visible?

Closed this issue · 2 comments

Is there a way to detect which Item is visible if InfiniteListItems has different sizes?

You can use flutter for that I think, or maybe a package that will report whenever widget will be visible within the viewport

If you use sticky header you can :

`
InfiniteListItem(

      headerStateBuilder: (context, state) {
         if (state.sticky) {
            Future(() => // call index change function);
         }
         return headerWidget;
     }

)

`