79837716

Date: 2025-12-04 09:00:12
Score: 1
Natty:
Report link

Since pagingController.refresh() only refresh and reset the state but doesn't automatically call fetchPage(), I manually call fetchNextPage() right after it. This works as a replacement for a missing forceRefresh() API.
can fix like this:

ever(turnStatusFilter, (_) {
  // InfiniteScrollPagination doesn't have forceRefresh(),
  // so I manually reset the controller and trigger the first load.
  pagingController.refresh();
  pagingController.fetchNextPage();
});
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: yasin