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
626 stars 213 forks source link

Add Prepend functionality and test #258

Closed okaforcj closed 1 year ago

okaforcj commented 1 year ago

One of the issues, I'm having and a few people are having is the ability to prepend to a list especially in use cases of a chat application. See issue: https://github.com/EdsonBueno/infinite_scroll_pagination/issues/244 . In my case, I'm paginating the chat and coupling it with a snapshot listener which should prepend the list with the newest chat item.

Currently there is no way of doing that efficiently and would have to do it outside of the pagingcontroller along with managing unnecessary state. It turns out the solution is pretty simple within the codebase. I've written the feature and simple test for it and I'm using this version in my app currently. It would be nice if it could be merged or considered. Please let me know if there are any concerns, I'll be more than happy to address them

Edit: PS There is no contributing guide, so I'm unsure of how to contribute the project, please let me know if there is a format I need to follow

rsegecin commented 5 months ago

why was this functionality not merged?