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

[Feature Request] Keep only a subset of items. #138

Closed
PaulRudin opened this issue Sep 23, 2021 · 1 comment
Closed

[Feature Request] Keep only a subset of items. #138

PaulRudin opened this issue Sep 23, 2021 · 1 comment

Comments

@PaulRudin
Copy link

PaulRudin commented Sep 23, 2021

At the moment (if I understand correctly) the PagingController keeps hold of all the items passed to appendLastPage. But in the case where there are very many pages, this could mean that we have very many items in memory. It would be nice to be able to drop some and re-request if necessary. This would fit well with #56 in order to re-request earlier pages.

@EdsonBueno
Copy link
Owner

Hey @PaulRudin ,
What's kept in memory is just the model objects, not the widgets; those are managed by Flutter itself.
Doing what you're asking for would completely change the API and make it much less intuitive for the lay user.
Thank you for your suggestion!

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

2 participants