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

[Feature request] New PagedPositionedListView widget for scrolling to list item #291

Closed kijka closed 4 months ago

kijka commented 9 months ago

Currently, if we want to scroll to a specific position, we can pass ScrollController and then set the needed position. However, it works only if the height of the items remains the same. If it's dynamic, then it's impossible to calculate the needed height to scroll.

It was a problem in the ListView widget too and they came up with a new widget ScrollablePositionedList to solve this issue.

It behaves a lot like ListView, so I guess we can create a new widget PagedPositionedListView, which will be a copy of the existing PagedListView but will use ScrollablePositionedList.

clragon commented 9 months ago

I prefer https://pub.dev/packages/anchor_scroll_controller which is independant of the view itself, and therefore much more versatile.