pull_refresh: Pull-to-refresh and load-more for any Flutter scroll view
pull_refresh is a new Flutter package that adds pull-to-refresh and load-more gestures to any scroll view, positioned as a clean-room replacement for pull_to_refresh. Its author says it was built to fix known edge cases in that library, such as controller crashes after disposal, headers that fail to collapse after a failed refresh, and unreliable load-more behavior on short lists. It works with ListView, GridView, CustomScrollView with slivers, SingleChildScrollView and NestedScrollView, and adapts its header style to the scroll physics in use. The package also includes built-in indicators, English, French and Arabic localisation with right-to-left layout support, and accessibility features. It is installed from GitHub and used by wrapping a list in a PullRefresh widget driven by a RefreshController.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in