From e07cf7b740c35b043ad2cc01ecaef046d8c3395a Mon Sep 17 00:00:00 2001 From: gonuit Date: Sat, 6 Jul 2024 20:18:53 +0200 Subject: [PATCH] docs: update changelog --- CHANGELOG.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79b469f..c9d01ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,20 @@ +## 4.0.0-dev.1 +- **CustomRefreshIndicator**: + - Removed deprecated parameters: *indicatorCancelDuration*, *indicatorSettleDuration*, *indicatorFinalizeDuration* and *completeStateDuration* .If you are still using them, switch to the *duration* parameter. +- **IndicatorController**: + - Added *minValue* and *maxValue* static constants. + - Added *transform* method. Allows you to transform controller animation values from the range *0.0* → *1.5* to another range. + - Added *normalize* method. Normalizes *value* by converting it to the range *0.0* → *1.0*. This allows the animation to be used directly with most Flutter widgets and tweens. You can still use *clamp* if you want to remove values above *1.0* instead of transforming the whole range. +- **CustomMaterialIndicator**: + - Redesigned/reimplemented. Now, when *indicatorBuilder* argument is not provided, it completely recreates the look and behavior of the built-in *RefreshIndicator* widget. + - Added *CustomMaterialIndicator.adaptive* constructor. + - *indicatorBuilder* parameter is now optional. + - The deprecated parameter *withRotation* has been removed. It was confusing and was not related to the material indicator design. To add rotation to the indicator, you need to implement rotation yourself 😔. + - Added *color*, *semanticsValue*, *semanticsLabel* and *strokeWidth* parameters. They are applied only when the default *indicatorBuilder* is used (given a null value). +- Removed deprecated *IndicatorBuilderDelegate* and *MaterialIndicatorDelegate* classes. +- Added *TransformedAnimation* class that allows transforming the parent animation value. +- **Example app**: + - Updated custom material indicator example. ## 3.1.1 - Fix: - Fixed *durations* parameter of *CustomRefreshIndicator* widget. Reported by [@jccd1996](https://github.com/jccd1996) in [#58](https://github.com/gonuit/flutter-custom-refresh-indicator/issues/58).