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

Using this package with nestedscrollview/tab bars causes issue with scrolling #319

Closed fennel-ptorchia closed 3 months ago

fennel-ptorchia commented 3 months ago

When using this to render a paginated list inside of a nestedscrollview with tabs, going to another tab and then back to the tab with paginated list causes the list to be shown from the beginning, not maintaining the view before moving to a different tab. is there a way to scroll to the previous position or to maintain the position with nested views?

clragon commented 3 months ago

TabBarViews not retaining the state of their children is an issue unrelated to this package and has simply to do with how the framework works. This issue applies to any scrollview. There are workarounds for this but I cannot recommend anything specific. Please consult the community resources instead.

fennel-ptorchia commented 3 months ago

That is not the case, they maintain state and scroll position for all except the tab utilizing this package.

clragon commented 3 months ago

Could you provide a minimal reproducible example?