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

Refresh reloads the page, and scroll up to the first page, how can I update an item without reload the whole pages? #192

Closed
rehamalraee24 opened this issue May 9, 2022 · 1 comment

Comments

@rehamalraee24
Copy link

I want to refresh one widget item within the items list, I have to call .refresh() function to update the data, How can I update one widget only or update the list without scrolling to the top and showing the progress indicator?

@LeGoffMael
Copy link

I think you could update the list of the controller directly:

that's how i deleted an element in the list

final list = _pagingController.itemList ?? [];
list.removeWhere((friend) => friend.id == user.id);
setState(() {
  _pagingController.itemList = list;
});

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

3 participants