Skip to content

V4.0.0 #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Jul 18, 2024
Merged

V4.0.0 #59

merged 26 commits into from
Jul 18, 2024

Conversation

gonuit
Copy link
Owner

@gonuit gonuit commented Jul 6, 2024

Changes:

  • CustomRefreshIndicator:
    • Removed deprecated parameters: indicatorCancelDuration, indicatorSettleDuration, indicatorFinalizeDuration and completeStateDuration .If you are still using them, switch to the duration parameter.
    • Improved handling of indicator controller changes.
    • Fixed missing dragDetails data when overscrolling.
  • IndicatorController:
    • Added minValue and maxValue static constants.
    • Added transform method. Allows you to transform controller animation values from the range 0.01.5 to another range.
    • Added normalize method. Normalizes value by converting it to the range 0.01.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.
  • Exposed a PositionedIndicatorContainer widget that allows easy positioning of the indicator.
  • Example app:
    • Updated custom material indicator example.
    • Updated application design.
    • Added tooltips.
    • Added ball indicator example, which is an overview of the drag details based indicator.
    • Updated web example.

@gonuit gonuit added the work in progress Work on the issue is underway label Jul 6, 2024
@gonuit gonuit self-assigned this Jul 6, 2024
@gonuit
Copy link
Owner Author

gonuit commented Jul 6, 2024

Preview version released on pub.dev as 4.0.0-dev.1

@gonuit gonuit added the prerelease This feature is already available, but in the prerelease version of the package. label Jul 6, 2024
@gonuit gonuit force-pushed the v4.0.0 branch 2 times, most recently from 2dd11c3 to 8ab7364 Compare July 9, 2024 21:43
@gonuit gonuit force-pushed the v4.0.0 branch 4 times, most recently from c041967 to eb60acf Compare July 11, 2024 20:35
# Conflicts:
#	CHANGELOG.md
#	example/lib/indicators/check_mark_indicator.dart
#	example/lib/indicators/envelope_indicator.dart
#	example/lib/indicators/plane_indicator.dart
#	example/lib/indicators/swipe_action.dart
#	example/lib/screens/presentation_screen.dart
#	example/lib/widgets/web_frame.dart
#	lib/src/custom_refresh_indicator.dart
#	lib/src/delegates/material_indicator_delegate.dart
#	lib/src/widgets/custom_material_indicator.dart
#	pubspec.yaml
@gonuit gonuit merged commit a192774 into master Jul 18, 2024
1 check passed
@gonuit gonuit deleted the v4.0.0 branch July 18, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prerelease This feature is already available, but in the prerelease version of the package. work in progress Work on the issue is underway
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant