easy_refresh_flutter3 library

Classes

BezierBackground
Bezier curve background.
BezierFooter
Bezier footer.
BezierHeader
Bezier header.
BuilderFooter
Build footer widget use IndicatorBuilder.
BuilderHeader
Build header widget use IndicatorBuilder.
ClassicFooter
Classic footer.
ClassicHeader
Classic header.
EasyRefresh
EasyRefreshController
Controls a EasyRefresh widget. Control refresh, loading and indicator states.
EasyRefreshData
EasyRefresh needs to share data
Footer indicator.
FooterLocator
Find Footer's Location Put the last item in the list it will smartly show Footer
FooterNotifier
Footer notifier Footer status and Notifications
Header indicator.
HeaderLocator
Find Header's Location Put the first item in the list it will smartly show Header
HeaderNotifier
Header notifier Header status and Notifications
Indicator
Refresh and loading indicator. Indicator configuration and widget builder.
IndicatorNotifier
Indicator data and trigger notification.
IndicatorState
Indicator properties and state.
MaterialFooter
Material footer.
MaterialHeader
Material header.
NotLoadFooter
Parameters when EasyRefresh.onLoad is null. Overscroll behavior of ScrollView.
NotRefreshHeader
Parameters when EasyRefresh.onRefresh is null. Overscroll behavior of ScrollView.

Enums

IndicatorMode
The current state of the indicator (Header or Footer).
IndicatorPosition
The position of the indicator.
IndicatorResult
The status returned after the task is completed.

Constants

kDefaultSecondaryVelocity → const double
The default opening speed of the secondary.
kDisappearAnimationDuration → const Duration
Default disappear animation duration.

Functions

kBezierFrictionFactor(double overscrollFraction) double
Friction factor used by bezier curves.
kBezierSpringBuilder({required IndicatorMode mode, required double offset, required double actualTriggerOffset, required double velocity}) SpringDescription
Spring used by bezier curves.
kMaterialFrictionFactor(double overscrollFraction) double
Friction factor used by material.
kMaterialSpringBuilder({required IndicatorMode mode, required double offset, required double actualTriggerOffset, required double velocity}) SpringDescription
Spring description used by material.

Typedefs

BezierSpinBuilder = Widget Function(BuildContext context, double value)
A builder that builds a spin widget. context BuildContext. value Animation value.
CanProcessCallBack = bool Function()
Indicator widget builder.
CIMessageBuilder = Widget Function(BuildContext context, IndicatorState state, String text, DateTime dateTime)
Message widget builder.
CIPullIconBuilder = Widget Function(BuildContext context, IndicatorState state, double animation)
Pull icon widget builder.
CITextBuilder = Widget Function(BuildContext context, IndicatorState state, String text)
Text widget builder.
ERChildBuilder = Widget Function(BuildContext context, ScrollPhysics physics)
EasyRefresh child builder. Provide ScrollPhysics, and use it in your ScrollView. ScrollPhysics will not be scoped.
FrictionFactor = double Function(double overscrollFraction)
The multiple applied to overscroll to make it appear that scrolling past the edge of the scrollable contents is harder than scrolling the list. This is done by reducing the ratio of the scroll effect output vs the scroll gesture input.
IndicatorBuilder = Widget Function(BuildContext context, IndicatorState state)
Indicator widget builder.
ModeChangeListener = void Function(IndicatorMode mode, double offset)
Mode change listener.
SpringBuilder = SpringDescription Function({required double actualTriggerOffset, required IndicatorMode mode, required double offset, required double velocity})
Build spring with IndicatorMode and offset. mode Indicator mode. offset Indicator offset. actualTriggerOffset Indicator actual trigger offset. velocity Indicator actual trigger offset.