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
632 stars 214 forks source link

unwanted jump to top on _controller.refresh() #123

Closed Ejazullah579 closed 3 years ago

sh1l0n commented 3 years ago

Needs to set nextPageKey before refresh

_paggingController.nextPageKey = pageKey;
_paggingController..refresh();

Anyway, after refresh the scroll position jumps to the first item of this pageKey

EdsonBueno commented 3 years ago

Hi @Ejazullah579 , refresh() cleans up your entire list. If there are no items to show, it's expected/wanted that the scroll position jumps to the top of the list. Not sure I understand what the issue is. I'm closing this issue for now, but feel free to continue the discussion. Thank you!