Skip to content

Commit d7aacb4

Browse files
author
Kamil Klyta
committed
Update docs
1 parent 9810386 commit d7aacb4

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
## 2.0.0-dev.4
1+
## 2.0.0-dev.5
22
## Breaking changes
33
- Added `autoRebuild` flag which is by default set to `true`.
44
From now on, there is no need to wrap widgets in the builder function with the `AnimatedBuilder` widget, as it will be automatically rebuilt. For optimization purposes, you can use the old behavior by setting the `autoRebuild` argument to false.
5+
- Remove *IndicatorState.hiding* state. Instead introduced *IndicatorState.finalizing* and *IndicatorState.canceling*.
56
- Renamed `extentPercentageToArmed` argument to `containerExtentPercentageToArmed` which better describes what it exactly does.
67
- Changed the default value of the `defaultContainerExtentPercentageToArmed` from `0.20` to `0.1(6)` to match the behavior of the built-in indicator widget.
78
- Removed deprecated **IndicatorStateHelper** class. Instead use **CustomRefreshIndicator.onStateChanged** method.

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ packages:
4242
path: ".."
4343
relative: true
4444
source: path
45-
version: "2.0.0-dev.4"
45+
version: "2.0.0-dev.5"
4646
fake_async:
4747
dependency: transitive
4848
description:

lib/src/data/indicator_state.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ enum IndicatorState {
3030

3131
/// #### [CustomRefreshIndicator] is awaiting on `onRefresh` call result
3232
/// When `onRefresh` will resolve [CustomRefreshIndicator] will change state
33-
/// from `loading` to `hiding` and decrease `CustomRefreshIndicatorData.value`
33+
/// from `loading` to `finalizing` and decrease `CustomRefreshIndicatorData.value`
3434
/// from `1` to `0` in duration specified by `CustomRefreshIndicator.loadingToIdleDuration`
3535
///
3636
/// (`CustomRefreshIndicatorData.value == 1`)

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: custom_refresh_indicator
22
description: Flutter Widget that make it easy to implement custom refresh indicator.
3-
version: 2.0.0-dev.4
3+
version: 2.0.0-dev.5
44
repository: https://github.com/gonuit/flutter-custom-refresh-indicator
55
issue_tracker: https://github.com/gonuit/flutter-custom-refresh-indicator/issues
66
homepage: https://github.com/gonuit/flutter-custom-refresh-indicator

0 commit comments

Comments
 (0)