You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I noticed that the resulting index did not match up with the correct item in the list of data I passed as elements.
Upon further investigation (DevTools), I understood that since the itemPositionsListener comes straight from scrollable_positioned_list (with no processing), the indices returned by itemPositions take the group separators into account as well. Is there a way to ignore them while calculating the correct index?
Or is there a different way I should be doing this?
Thanks again!
The text was updated successfully, but these errors were encountered:
Hi @Dimibe, and thank you so much for your excellent package - I came across it today and already started using it!
I tried accessing the index of the top visible widget in the list (as shown in the
scrollable_positioned_list
example).However, I noticed that the resulting index did not match up with the correct item in the list of data I passed as
elements
.Upon further investigation (DevTools), I understood that since the
itemPositionsListener
comes straight fromscrollable_positioned_list
(with no processing), the indices returned byitemPositions
take the group separators into account as well. Is there a way to ignore them while calculating the correct index?Or is there a different way I should be doing this?
Thanks again!
The text was updated successfully, but these errors were encountered: