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
I am currently using the infinite_scroll_pagination for pagination and this package for scrolling to index. So the thing is the scrollToIndex works when the scrollview has that index but when I need to scroll to an index which isn't visible on the scrollview so anyway to get to that index? This is for a chat screen so when you search you can jump to that index or for example a reply.
if you decide to use this lib for it, you can just call scrollTo() and await for it, then find the tagMap of AutoScrollController to check if the index is generated (if yes, means it's loaded and the cell widget state is created, should be in the screen). otherwise, just call scrollTo again after next page loaded until the condition turns true.
if you decide to use this lib for it, you can just call scrollTo() and await for it, then find the tagMap of AutoScrollController to check if the index is generated (if yes, means it's loaded and the cell widget state is created, should be in the screen). otherwise, just call scrollTo again after next page loaded until the condition turns true.
Thanks for the answer.
The height of each item in the list is already dynamic. And for that package I have to use their ScrollView can't use the ScrollView the infinite_scroll_pagination gave.
The second way you said was my first approach and I did it before opening this issue, but for some reason, it makes the whole app stuck can't use anything even the debug session stucks.
I am currently using the infinite_scroll_pagination for pagination and this package for scrolling to index. So the thing is the scrollToIndex works when the scrollview has that index but when I need to scroll to an index which isn't visible on the scrollview so anyway to get to that index? This is for a chat screen so when you search you can jump to that index or for example a reply.
Here is a reproducible example
The text was updated successfully, but these errors were encountered: