scroll-to-index icon indicating copy to clipboard operation
scroll-to-index copied to clipboard

Scroll to index stops working for AutomaticKeepAlive widgets

Open PT10 opened this issue 1 year ago • 4 comments

Hi,

This is indeed a great library and working quite well until we have widgets which we want to keep alive throughout. In our case the inner widgets (of the ListView) are quite heavy. So want to load them only first time and then preserve their state forever for a smooth scrolling experience.

What we have observed is that if the child element inside the ListView uses AutomaticKeepAliveClientMixin with wantKeepAlive set to true, the scroll to index stops working if you go back and forth few times. I think it has something to do with the tagMap you maintain internally. Please let me know if there is any solution to this problem.

Thanks Prasad

PT10 avatar Jul 15 '23 09:07 PT10