dynamic_animation 0.2.0 copy "dynamic_animation: ^0.2.0" to clipboard
dynamic_animation: ^0.2.0 copied to clipboard

The dynamicTo function, an extension of AnimationController, enables spring-based animations.

Dynamic Animation #

The dynamicTo function is an extension method for AnimationController. It initiates a spring-based animation, transitioning from the current state (determined by from and velocity) to a specified target value.

Parameters #

  • target (double, required): Defines the destination value.
  • from (double, optional): Represents the starting value. If not provided, defaults to the AnimationController's current value.
  • velocity (double, optional): Indicates the starting speed. Defaults to the AnimationController's current velocity.
  • springDescription (SpringDescription, optional): Characterizes the spring-like behavior. Defaults to defaultSpringDescription.
  • tolerance (Tolerance, optional): Determines the acceptable deviation. Defaults to Tolerance.defaultTolerance.

In summary, dynamicTo provides a convenient way to create spring animations on an AnimationController, allowing for easy target specification and optional customization of starting state and spring behavior parameters.

1
likes
160
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

The dynamicTo function, an extension of AnimationController, enables spring-based animations.

Repository (GitHub)
View/report issues

Topics

#animation #spring

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on dynamic_animation