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
When use the argument initialScrollIndex on ScrollablePositionedList, the values of itemPositionsListener not represent the correct values showed on scroll list. If the initialScrollIndex set on 0 the itemPositionsListener returns the correct values.
Steps to reproduce
Create a ScrollablePositionedList with 100 elements;
Adding listiner on itemPositionsListener to see the positions elements when scroll list;
Set the initialScrollIndex if any value where index is not visible initialy on list. (example: 50);
Scroll the list to index 0;
Demostration
Expected behavior
The first element on positions need represents the first element showed on list.
The last element on positions need represents the last element showed on list.
Actual behavior
The first element on positions not represents the first element showed on list, in the Demostration the index of first element is 9 but the true index of first element showed on list is 0.
The last element on positions not represents the first element showed on list, in the Demostration the index of first element is 0 but the true index of last element showed on list is 9.