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

insert newly added item at the top of the list #187

Closed MohammedElotol closed 1 year ago

MohammedElotol commented 2 years ago

How can I add new item at the top - or delete- keeping the paged list intact

ChiPhanTlm commented 2 years ago

same issue here, any example :D

MohammedElotol commented 2 years ago

I made a fork and added controller. insertItemAt(index, item)

My fork: https://github.com/MohammedElotol/infinite_scroll_pagination

obrunsmann commented 2 years ago

@MohammedElotol I am also interested in this feature. What about a PR for the main project?

EdsonBueno commented 1 year ago

You can always edit the itemList directly as shown here.