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
612 stars 202 forks source link

Append Page at the beggining #244

Closed carrasc0 closed 5 months ago

carrasc0 commented 1 year ago

I have a chat app that use this library inverted naturally, and i would like to add items to the list without rebuild the whole list. Is there any way to append items at the beginning and keeping same page key, instead of at the end?

mitesh77 commented 1 year ago

@carrasc0 The same issue, I am facing when I have to add a few beginning messages. stick with the same position not rebuild.

have you found any solution @carrasc0?

mitesh77 commented 1 year ago

when we used chat we had to go sometime on both sides, and I still did not find any solution. @carrasc0 let me know if you have a solution.

carrasc0 commented 1 year ago

Nothing yet guys. Waiting a response from them yet. i am starting to think they have no idea what to do with the issue

okaforcj commented 1 year ago

is there any update on this, i have a similar issue

carrasc0 commented 1 year ago

@okaforcj does your changes fix this issue?

okaforcj commented 1 year ago

@okaforcj does your changes fix this issue?

Yeah it does, i forked the repo and added a new api called prependPage which should fix it. I am currently already using it in my app and it works well

carrasc0 commented 1 year ago

@okaforcj Did they merged it? Ill try to fork your solution if they did not

carrasc0 commented 1 year ago

I think they closed it without feedback, which is a very infantil behaviour @okaforcj

okaforcj commented 1 year ago

@carrasc0 nope, i closed it, it sat there for 3 weeks and no one said anything, so i just closed it

carrasc0 commented 1 year ago

@okaforcj I use your library in production and its great. However, that functionality is quite necessary for a variety of use cases, currently I gotta add the mentioned fix via extensions, but would be nice to add it as a feature.

okaforcj commented 1 year ago

hey thanks for the feedback @carrasc0 , i use it in production of my own companys app currently. but i dont know if the authors of this library is accepting PRs from independent devs so I just left it out for now.

mitesh77 commented 12 months ago

can you provide me with how this add-in project @okaforcj Screenshot 2023-07-29 at 4 15 41 PMthis not working

zahidshaikh08 commented 10 months ago

This issue is very important as this lib has been used by so many devs and we 100% this to be fixed and have this feature. Also there is one issue where if we delete the item from list users must have to scroll above or below to reflect that deleted item from list to be disappear, which is a major bug.

I think the issue for both of this things are because of internal SliverList() which does not refreshed somehow and that is causing these bugs.

It's also into flutter favourites category so it's better we have these issues resolved asap.

wildsurfer commented 7 months ago

+1 for this feature

n7tequila commented 7 months ago

+1 for this feature

Trung15010802 commented 6 months ago

+1 for this feature

lybur commented 5 months ago

+1 for this feature

clragon commented 5 months ago

even if the item was added at the beginning, which you can do by manually manipulating the item list, this would still cause a rebuild everywhere. it is not possible to modify the list without a rebuild.