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

feat: How do you actually refresh an InfiniteList when the previous items are no longer valid? #85

Open
2 tasks
andynewman10 opened this issue Jan 22, 2025 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@andynewman10
Copy link

Description

My InfiniteList contents are based on search terms.

How can I refresh the widget? I tried to empty the items (_items member in the example) and then calling setState(), but it doesn't work. The InfiniteList does not fetch new items based on the updated search terms.

Am I supposed to fiddle with a FutureBuilder or maybe a GlobalKey?

Requirements

  • All CI/CD checks are passing.
  • There is no drop in the test coverage percentage.

Additional Context

No response

@andynewman10 andynewman10 added the feature A new feature or request label Jan 22, 2025
@alestiago alestiago added documentation Improvements or additions to documentation and removed feature A new feature or request labels Jan 22, 2025
@alestiago
Copy link
Contributor

Hi @andynewman10 ! Thanks for reaching out.

I can't recall of the top of my head, the best methodology to update such. From what I recall it wasn't complex and I would expect it to be a similar approach that you would use for other Flutter widgets. I currently don't have the bandwidth to look into it and provide a new example.

I'm labelling this item as "documentation" instead of "future" for the time being.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Needs Triage
Development

No branches or pull requests

2 participants