Flutter Custom Refresh Indicator #
- Flutter Custom Refresh Indicator
This package adds
CustomRefreshIndicator widget that make it easy to implement custom refresh indicator.
Icon as child LINK
Getting started #
CustomRefreshIndicator is not the same as the
RefreshIndicator widget. It has an absolute minimum functionality that allows you to create and set your own custom indicators.
Object containig data provided by
Enum which describes state of CustomRefreshIndicator.
CustomRefreshIndicator is idle (There is no action)
CustomRefreshIndicatorData.value == 0)
Whether user is draging
CustomRefreshIndicator ending the scroll WILL NOT result in
CustomRefreshIndicatorData.value < 1)
CustomRefreshIndicator is armed ending the scroll WILL result in:
- change of status to
1in duration specified by
CustomRefreshIndicatorData.value >= 1)
CustomRefreshIndicator is hiding indicator when
onRefresh future is resolved or indicator was canceled (scroll ended when [CustomRefreshIndicatorState] was equal to
value was less than
1 or the user started scrolling through the list)
CustomRefreshIndicatorData.value decreases to
0 in duration specified by
CustomRefreshIndicator is awaiting on
onRefresh call result. When
onRefresh will resolve
CustomRefreshIndicator will change state from
hiding and decrease
0 in duration specified by
CustomRefreshIndicatorData.value == 1)
- Extracted inbox example to
[0.1.0] - Initial version.
- Added basic
SimpleIndicatorContainerwidget which simulate default
- Added examples:
[0.2.0] - Added support for BouncingScrollPhysics.
- Added support for
BouncingScrollPhysics- ios default sroll physics
- Improved readme
A new Flutter project.
Getting Started #
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: custom_refresh_indicator: ^0.2.0
2. Install it
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Nov 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.6.0
- pana: 0.12.21
- Flutter: 1.9.1+hotfix.6
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.