Package selection guidance compiled from public package information, community data, and project usage.
A Flutter plugin that enables developers to implement pull-to-refresh functionality using the PullToRefreshNotification and PullToRefreshContainer widgets. It provides a simple, efficient way to add refresh gestures to lists or scrollable content across multiple platforms. The package integrates seamlessly with existing scroll views and supports custom refresh indicators, making it ideal for apps requiring smooth, responsive data reloading. Built for performance and ease of use, it works on Android, iOS, Web, macOS, Windows, and Linux.
Use cases
Implementing pull-to-refresh in list views
Creating custom refresh indicators
Enhancing user experience in data-heavy apps
Building cross-platform refreshable UIs
Adding real-time data updates
Integrating with scrollable widgets
Key features
PullToRefreshNotification for event handling
PullToRefreshContainer for wrapping scrollable content
Cross-platform support
Customizable refresh indicators
Simple integration with ScrollViews
Real-time refresh state management
Suitable for
Developers building dynamic list interfaces
Teams targeting multiple platforms
Apps requiring frequent data updates
UI-focused Flutter projects
Fast prototyping of refreshable screens
Considerations
Requires integration with ScrollViews
Limited to pull-to-refresh behavior
May need additional styling for custom designs
Depends on Flutter's gesture system
Not suitable for non-scrollable refresh scenarios
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
enumRefreshIndicatorMode {
drag, // Pointer is down.
armed, // Dragged far enough that an up event will run the onRefresh callback.
snap, // Animating to the indicator's final "displacement".
refresh, // Running the refresh callback.
done, // Animating the indicator's fade-out after refreshing.
canceled, // Animating the indicator's fade-out after not arming.
error, //refresh failed
}
Sample 1 appbar
build appbar to pull to refresh with PullToRefreshContainer