EdsonBueno / infinite_scroll_pagination

Flutter package to help you lazily load and display pages of items as the user scrolls down your screen.
https://pub.dev/packages/infinite_scroll_pagination
MIT License
605 stars 201 forks source link

How to retain scroll position after forcing a controll refresh? #326

Open Adam-Langley opened 2 months ago

Adam-Langley commented 2 months ago

As per description, when I call refresh on the PagingController, the scroll position is reset to 0. I would like to restore the users prior scroll position.

How can this be achieved?

Note: I'm using the PagedSliverList

Thanks,

KrisBraun commented 2 months ago

If you want a bi-directional list, this technique with forward and reverse lists works well.