custom_refresh_indicator 0.1.0 copy "custom_refresh_indicator: ^0.1.0" to clipboard
custom_refresh_indicator: ^0.1.0 copied to clipboard

outdated

Flutter Widget that make it easy to implement custom refresh indicator.

Flutter Custom Refresh Indicator #

This package adds CustomRefreshIndicator widget that make it easy to implement custom refresh indicator.

Examples: #

Use of SimpleIndicatorContainer with Icon as child LINK #

simple_indicator

Letter indicator LINK #

letter_indicator

blur indicator LINK #

blur_indicator

Getting started #

CustomRefreshIndicator #

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.

Arguments

Argument type default value required
child Widget --- true
onRefresh Future<void> Function() --- true
indicatorBuilder Widget Function(BuildContext, CustomRefreshIndicatorData) --- true
dragingToIdleDuration Duration Duration(milliseconds: 300) false
armedToLoadingDuration Duration Duration(milliseconds: 200) false
loadingToIdleDuration Duration Duration(milliseconds: 100) false
leadingGlowVisible bool false false
trailingGlowVisible bool true false

CustomRefreshIndicatorData #

Object containig data provided by CustomRefreshIndicator.

Props

prop type
value double
direction AxisDirection
scrollingDirection ScrollDirection
indicatorState CustomRefreshIndicatorState

CustomRefreshIndicatorState #

Enum which describes state of CustomRefreshIndicator.

Props

value description
idle Indicator is idle
draging user is draging indicator
armed Indicator is dragged enough to be trigger onRefresh action
hiding hiding indicator when onRefresh action is done or indicator was canceled
loading onRefresh action is pending
681
likes
0
pub points
98%
popularity

Publisher

verified publisherklyta.it

Flutter Widget that make it easy to implement custom refresh indicator.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on custom_refresh_indicator