You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Remove deprecated members and update dependencies
* Add the IndicatorSide enum and extension with getters
* Add missing getters for the IndicatorState enum
For consistency
* Make use of IndicatorState getters in the controller
* Rename local "_refreshEnabled" field to "_isRefreshEnabled" to be consistency with the public getter.
* Add the side property
* Refactor
* Update changelog
* Introduce IndicatorSide class
* Update changelog
* Move positioned_indicator_container to the example app as it is not the core functionality provided by this package
* Update changelog
* Remove debug prints
* Remove unused import
* Both sides
* fix test
* Rename edge parameter to trigger
* Format code
* Add trigger mode support
* Update docs
* update changelog
* update changelog
* Disable trigger from fake events
* Better error message for the "refresh" method
* Match the required extent to armed with the built-in indicator
* Update ios example project minimum os version
* Start refresh immediately after releasing indicator in the armed state
* Fixed a bug causing the onRefresh method not being triggered on the iOS
* Bump version
* Restructure tests directory
* Add widget tests
* Add trigger tests
* Implement equality operator for indicator state change class
* Update changelog
* Add tests for on state changed function
* Add BouncingPhysics tests
* Add missing data tests
* bump package version
* Update offsetToArmed docs
* Add autoRebuild argument
* Introduce material delegate
* Update docs
* Formatting
* Update readme
* Update indicator controller gif
* Update version
* Rename start and end edge into leading and trailing
* Add material indicator delegate to readme
* Documentation
* Update version
* Set version to dev.6
* Fix tables on pub.dev
* Add settling state
* Remove simple indicator
* Fix pub tables
* Release 2.0.0
Co-authored-by: Kamil Klyta <kamil.klyta@htdevelopers.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+29-9Lines changed: 29 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,25 @@
1
+
## 2.0.0
2
+
## Breaking changes
3
+
- Added `autoRebuild` flag which is by default set to `true`.
4
+
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*.
6
+
- Splited *IndicatorState.loading* state into two phases: *IndicatorState.settling* and *IndicatorState.loading*.
7
+
- Renamed `extentPercentageToArmed` argument to `containerExtentPercentageToArmed` which better describes what it exactly does.
8
+
- Changed the default value of the `defaultContainerExtentPercentageToArmed` from `0.20` to `0.1(6)` to match the behavior of the built-in indicator widget.
9
+
- Removed deprecated **IndicatorStateHelper** class. Instead use **CustomRefreshIndicator.onStateChanged** method.
10
+
- Removed deprecated **leadingGlowVisible** and **trailingGlowVisible** arguments. Instead use **leadingScrollIndicatorVisible** and **trailingScrollIndicatorVisible** accoringly.
11
+
- Allow setting the edge of the list that will trigger the pull to refresh action.
12
+
- Introduced **IndicatorEdge**, **IndicatorTrigger**, **IndicatorSide** and **IndicatorTriggerMode** classes.
13
+
- Replaced **reversed** argument of the **CustomRefreshIndicator** class with **trigger**.
14
+
- Added **edge** and **side** properties to the **IndicatorController** class.
15
+
- Added extension with utility getters for **IndicatorState** class.
16
+
- Trigger mode support added. Equivalent to trigger mode of the built-in **RefreshIndicator** widget.
17
+
- The **PositionedIndicatorContainer** class is no longer exported from this package, however the source code is available in the example application.
18
+
- 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`.
19
+
- Fixed a bug causing the *onRefresh* method not to be triggered on the iOS platform due to bounce physics.
20
+
- Implemented equality operator for *IndicatorStateChange* class.
21
+
- Improved code coverage with tests
22
+
- Multiple minor fixes, improvements and optimizations.
1
23
## 1.2.1
2
24
- Flutter 3.0.0 migration backward compatibility fix ([#31](https://github.com/gonuit/flutter-custom-refresh-indicator/pull/31)) by [Jordan1122](https://github.com/Jordan1122)
3
25
## 1.2.0
@@ -70,12 +92,10 @@
70
92
71
93
## BREAKING API CHANGES
72
94
73
-
- Feedback improvements (thank you for your emails!):
-`indicatorBuilder` argument is no longer present. Instead use `builder` argument which has some significant changes.
79
99
80
100
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:
81
101
@@ -88,9 +108,9 @@ return CustomRefreshIndicator(
88
108
/// to child argument
89
109
Widget child,
90
110
/// Now all your data will be stored in controller.
91
-
/// To get controller outside of this function
92
-
/// 1. Create controller in parent widget and pass it to CustomRefreshIndicator
93
-
/// 2. Assign [GlobalKey] to CustomRefreshIndicator and access `key.currentState.controller`.
111
+
/// To get controller outside of this function you can either:
112
+
/// - Create controller in parent widget and pass it to CustomRefreshIndicator widget
113
+
/// - Assign [GlobalKey] to CustomRefreshIndicator and access `key.currentState.controller`.
0 commit comments