Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update existed item on list view? #238

Closed
cogivn opened this issue Dec 10, 2022 · 3 comments
Closed

How to update existed item on list view? #238

cogivn opened this issue Dec 10, 2022 · 3 comments

Comments

@cogivn
Copy link

cogivn commented Dec 10, 2022

Hi,

Thank you for creating awesome library.
I'm having a problem, how can i update item in specific page when using infinite_scroll_pagination

Ex:
Page 0[Rambutan, Tomato, Pear]
Page 1[Apple, Orange, Cherry]
Page 2[Pipeapple, Mango, Melon]

Update Page 1[Apple, Banana, Cherry]

Thank you,

@petodavid
Copy link

How did you manage this? Update?

@SebastienBtr
Copy link

I would also like to have this feature

@lukaskris
Copy link

use this one
i think it the only way to update an single item

pagingController.itemList = pagingController.itemList?.map((e) {
if (e.postId == postId) {
return e.copyWith(
pollings: dataResult.pollings, votedId: dataResult.votedId);
} else {
return e;
}
}).toList();

but it will be janky if u turn on the transition

@EdsonBueno EdsonBueno closed this as not planned Won't fix, can't repro, duplicate, stale Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants