pull_to_refresh_notification
3.1.1, released a year ago by fluttercandies.com
Flutter plugin for building custom pull-to-refresh effects quickly.
What it does
Provides PullToRefreshNotification and PullToRefreshContainer widgets to build customized pull-to-refresh headers, appbars, and animations in scrollable lists.
AI-written summary of version 3.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want custom pull-to-refresh animations or headers beyond standard Material and Cupertino indicators
- You need to handle pull-to-refresh states in a reverse list or custom scroll view
Skip it when
- You only need standard, out-of-the-box Material or Cupertino refresh indicators
- You do not use scrollable widgets
Strengths
- Highly customizable refresh headers and UI states
- Supports reverse lists and custom scroll views
- Cross-platform support including web and desktop
Weaknesses
- Requires manual implementation of custom header UI instead of a plug-and-play indicator
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Widget build(BuildContext context) {
return PullToRefreshNotification(
color: Colors.blue,
onRefresh: onRefresh,
child: CustomScrollView(
slivers: <Widget>[
PullToRefreshContainer(buildPulltoRefreshHeader),
SliverList(
delegate: SliverChildBuilderDelegate((BuildContext context, int index) {
return Text("Item $index");
}, childCount: 10),
),
],
),
);
}Alternatives
Packages that do the same job and could replace pull_to_refresh_notification.
- easy_refresh
A Flutter widget providing pull-down refresh and pull-up load for all scrollable widgets.
80Compare - custom_refresh_indicator
Widget that makes it easy to implement a custom pull to refresh gesture.
81Compare - enhanced_paginated_view
A customizable Flutter widget for paginated lists, grids, and slivers with pull-to-refresh.
65Compare - pullex
A customizable pull-to-refresh widget for Flutter, based on pull_to_refresh with enhancements and bugfixes.
52Compare