ImplicitAnimation
An element that automatically animates a set of typed values whenever their targets change between builds. Each property change triggers a tween from the previous snapshot to the new target over the configured duration. Declare the properties to animate as AnimatedValue instances in the values list. Read the current interpolated values inside the builder delegate via Get. A single AnimationController is shared across all properties. When any target value changes, the controller restarts from the current interpolated snapshot.
Constructor
ImplicitAnimation
Creates a new implicit animation element.
| Parameter | Description |
|---|---|
values | The list of AnimatedValue entries to animate. Each entry must have a unique key. |
duration | Duration of one full tween in seconds. Must be greater than zero. |
builder | A delegate that receives the build context and the current animated snapshot. |
curve | The easing curve to apply. Defaults to linear when null. |
key | An optional key for reconciliation identity. |
Properties
Builder
A delegate that receives the build context and the current animated snapshot, and returns the element subtree.
Curve
The easing curve applied to the animation progress. Defaults to Linear when null.
Duration
Duration of one full tween in seconds. Must be greater than zero.
Values
The list of animated values. Each entry must have a unique Key.