Releases: gonuit/flutter-custom-refresh-indicator
Releases · gonuit/flutter-custom-refresh-indicator
v2.2.1
v2.2.0
Changes
- Added clipBehavior and the elevation arguments of the MaterialIndicatorDelegate class.
New Contributors
- @lukepighetti made their first contribution in #41
Full Changelog: v2.1.0...v2.2.0
v2.1.0
v2.0.1
Changes:
- Added missing isCanceling and isSettling getters for IndicatorState and IndicatorController enum.
Full Changelog: v2.0.0...v2.0.1
v2.0.0
Breaking changes
- Added
autoRebuild
flag, which is by default set totrue
.
There is no need to wrap widgets in the builder function with theAnimatedBuilder
widget, as it will be automatically rebuilt. For optimization purposes, you can use the old behavior by setting theautoRebuild
argument to false. - Remove IndicatorState.hiding state. Instead introduced IndicatorState.finalizing and IndicatorState.canceling.
- Splited IndicatorState.loading state into two phases: IndicatorState.settling and IndicatorState.loading.
- Renamed
extentPercentageToArmed
argument tocontainerExtentPercentageToArmed
which better describes what it exactly does. - Changed the default value of the
defaultContainerExtentPercentageToArmed
from0.20
to0.1(6)
to match the behavior of the built-in indicator widget. - Removed deprecated IndicatorStateHelper class. Instead use CustomRefreshIndicator.onStateChanged method.
- Removed deprecated leadingGlowVisible and trailingGlowVisible arguments. Instead use leadingScrollIndicatorVisible and trailingScrollIndicatorVisible accoringly.
- Allow setting the edge of the list that will trigger the pull to refresh action.
- Introduced IndicatorEdge, IndicatorTrigger, IndicatorSide and IndicatorTriggerMode classes.
- Replaced reversed argument of the CustomRefreshIndicator class with trigger.
- Added edge and side properties to the IndicatorController class.
- Added extension with utility getters for IndicatorState class.
- Trigger mode support added. Equivalent to the trigger mode of the built-in RefreshIndicator widget.
- Now the onRefresh function will be triggered immediately when the indicator is released in the armed state. Previously, the onRefresh function was triggered when the indicator reached a target value in the loading state of
1.0
. - Fixed a bug causing the onRefresh method not to be triggered on the iOS platform due to bounce physics.
- Implemented equality operator for IndicatorStateChange class.
- Improved code coverage with tests
- Multiple minor fixes, improvements and optimizations.
v2.0.0-dev.7
Changes:
- Pub.dev readme fixes
v2.0.0-beta.1
Changes:
- Update readme file
v2.0.0-dev.4
- Implemented equality operator for IndicatorStateChange class.
v2.0.0-dev.3
What's Changed
- Now, the onRefresh function will be triggered immediately when the indicator is released in the armed state. Previously, the onRefresh function was triggered when the indicator reached a target value in the loading state of
1.0
. - Fixed a bug causing the onRefresh method not to be triggered on the iOS platform due to bounce physics.