Skip to Content
API ReferenceImplicitAnimation

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.

ParameterDescription
valuesThe list of AnimatedValue entries to animate. Each entry must have a unique key.
durationDuration of one full tween in seconds. Must be greater than zero.
builderA delegate that receives the build context and the current animated snapshot.
curveThe easing curve to apply. Defaults to linear when null.
keyAn 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.

Methods

CreateState

Last updated on