Skip to content
pubscout

pull_to_refresh_notification

3.1.1, released a year ago by fluttercandies.com

Flutter plugin for building custom pull-to-refresh effects quickly.

WASM-ready
$ flutter pub add pull_to_refresh_notification
Source repository

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.