Skip to content

Commit 465699d

Browse files
committed
release/v2.2.1
1 parent 8b3ec2d commit 465699d

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

CHANGELOG.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 2.2.1
2+
- Fixed typos in documentation
13
## 2.2.0
24
- Added *clipBehavior* and the *elevation* arguments of the *MaterialIndicatorDelegate* class.
35
## 2.1.0
@@ -9,11 +11,11 @@
911
- Added `autoRebuild` flag which is by default set to `true`.
1012
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.
1113
- Remove *IndicatorState.hiding* state. Instead introduced *IndicatorState.finalizing* and *IndicatorState.canceling*.
12-
- Splited *IndicatorState.loading* state into two phases: *IndicatorState.settling* and *IndicatorState.loading*.
14+
- Split *IndicatorState.loading* state into two phases: *IndicatorState.settling* and *IndicatorState.loading*.
1315
- Renamed `extentPercentageToArmed` argument to `containerExtentPercentageToArmed` which better describes what it exactly does.
1416
- Changed the default value of the `defaultContainerExtentPercentageToArmed` from `0.20` to `0.1(6)` to match the behavior of the built-in indicator widget.
1517
- Removed deprecated **IndicatorStateHelper** class. Instead use **CustomRefreshIndicator.onStateChanged** method.
16-
- Removed deprecated **leadingGlowVisible** and **trailingGlowVisible** arguments. Instead use **leadingScrollIndicatorVisible** and **trailingScrollIndicatorVisible** accoringly.
18+
- Removed deprecated **leadingGlowVisible** and **trailingGlowVisible** arguments. Instead use **leadingScrollIndicatorVisible** and **trailingScrollIndicatorVisible** accordingly.
1719
- Allow setting the edge of the list that will trigger the pull to refresh action.
1820
- Introduced **IndicatorEdge**, **IndicatorTrigger**, **IndicatorSide** and **IndicatorTriggerMode** classes.
1921
- Replaced **reversed** argument of the **CustomRefreshIndicator** class with **trigger**.
@@ -86,8 +88,8 @@
8688
## 0.9.0-dev.1
8789

8890
- Added optional `complete` indicator state together with `completeStateDuration` parameter.
89-
- `IndicatorControler` changes:
90-
- Added `prevoiusState` property.
91+
- `IndicatorController` changes:
92+
- Added `previousState` property.
9193
- Added `didStateChange` helper method.
9294
- Added `wasArmed`, `wasDragging`, `wasLoading`, `wasHiding` and `wasIdle` properties.
9395
- Added `notificationPredicate` property to the `CustomRefreshIndicator` widget.
@@ -103,7 +105,7 @@
103105
- `CustomRefreshIndicatorState` => `IndicatorState`
104106
- `indicatorBuilder` argument is no longer present. Instead use `builder` argument which has some significant changes.
105107

106-
To animate indicator based on `IndicatorControler` you can use `AnimationBuilder` widget and pass `IndicatorData` object as `animation` argument. Because of that you can implement your own widget rebuild system what can improve your custom indicator performance (instead of building indicator eg. 300 times you can decide when you want to do it). Example:
108+
To animate indicator based on `IndicatorController` you can use `AnimationBuilder` widget and pass `IndicatorData` object as `animation` argument. Because of that you can implement your own widget rebuild system what can improve your custom indicator performance (instead of building indicator eg. 300 times you can decide when you want to do it). Example:
107109

108110
```dart
109111
return CustomRefreshIndicator(
@@ -123,7 +125,7 @@ return CustomRefreshIndicator(
123125
// IndicatorData extends ChangeNotifier class so it is possible to
124126
// assign it to an AnimationBuilder widget and take advantage of subtree rebuild
125127
animation: controller,
126-
child: MyPrebuildWidget(),
128+
child: MyWidget(),
127129
child: child,
128130
builder: (BuildContext context, Widget child) {
129131
/// TODO: Implement your custom refresh indicator
@@ -141,7 +143,7 @@ return CustomRefreshIndicator(
141143

142144
## 0.2.0
143145

144-
- Added support for `BouncingScrollPhysics` - ios default sroll physics
146+
- Added support for `BouncingScrollPhysics` - ios default scroll physics
145147
- Improved readme
146148

147149
## 0.1.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ The following table describes each state of the indicator controller.
227227
| -------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
228228
| **idle** | In this state, the indicator is not visible. No user action is performed. Value remains at *0.0*. |
229229
| **dragging** | The user starts scrolling/dragging the pointer to refresh. Releasing the pointer in this state will not trigger the *onRefresh* function. The controller value changes from *0.0* to *1.0*. |
230-
| **canceling** | The function *onRefresh* **has not been executed**, and the indicator is hidding from its current value that is lower than *1.0* to *0.0*. |
230+
| **canceling** | The function *onRefresh* **has not been executed**, and the indicator is hiding from its current value that is lower than *1.0* to *0.0*. |
231231
| **armed** | The user has dragged the pointer further than the distance declared by *containerExtentPercentageToArmed* or *offsetToArmed* (over the value of *1.0*). Releasing the pointer in this state will trigger the *onRefresh* function. |
232232
| **settling** | The user has released the indicator in the armed state. The indicator settles on its target value *1.0*. |
233233
| **loading** | The indicator has a target value of *1.0*. The *onRefresh* function is triggered. |

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ packages:
4747
path: ".."
4848
relative: true
4949
source: path
50-
version: "2.2.0"
50+
version: "2.2.1"
5151
fake_async:
5252
dependency: transitive
5353
description:

lib/src/custom_refresh_indicator.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class CustomRefreshIndicatorState extends State<CustomRefreshIndicator>
185185
// bool _canStart = false;
186186

187187
/// Indicating that indicator is currently stopping drag.
188-
/// When true, user is not able to performe any action.
188+
/// When true, user is not able to perform any action.
189189
bool _isStopingDrag = false;
190190

191191
late double _dragOffset;
@@ -450,7 +450,7 @@ class CustomRefreshIndicatorState extends State<CustomRefreshIndicator>
450450

451451
final offsetToArmed = widget.offsetToArmed;
452452

453-
/// If [offestToArmed] is provided then it will be used otherwise
453+
/// If [offsetToArmed] is provided then it will be used otherwise
454454
/// [extentPercentageToArmed]
455455
if (offsetToArmed != null) {
456456
newValue = _dragOffset / offsetToArmed;

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: custom_refresh_indicator
2-
description: Flutter Widget that make it easy to implement custom refresh indicator.
3-
version: 2.2.0
2+
description: Widget that makes it easy to implement a custom pull to refresh effect.
3+
version: 2.2.1
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)