animation library

The Flutter animation system.

To use, import package:flutter/animation.dart.

See flutter.io/animations for an overview.

This library depends only on core Dart libraries and the physics.dart library.

Classes

AlwaysStoppedAnimation<T>
An animation that is always stopped at a given value. [...]
Animatable<T>
An object that can produce a value of type T given an Animation as input. [...]
Animation<T>
An animation with a value of type T. [...]
AnimationController
A controller for an animation. [...]
AnimationEagerListenerMixin
A mixin that replaces the didRegisterListener/didUnregisterListener contract with a dispose contract.
AnimationLazyListenerMixin
A mixin that helps listen to another object only when this object has registered listeners.
AnimationLocalListenersMixin
A mixin that implements the addListener/removeListener protocol and notifies all the registered listeners when notifyListeners is called.
AnimationLocalStatusListenersMixin
A mixin that implements the addStatusListener/removeStatusListener protocol and notifies all the registered listeners when notifyStatusListeners is called.
AnimationMax<T extends num>
An animation that tracks the maximum of two other animations. [...]
AnimationMean
An animation of doubles that tracks the mean of two other animations. [...]
AnimationMin<T extends num>
An animation that tracks the minimum of two other animations. [...]
AnimationWithParentMixin<T>
Implements most of the Animation interface by deferring its behavior to a given parent Animation. [...]
ColorTween
An interpolation between two colors. [...]
CompoundAnimation<T>
An interface for combining multiple Animations. Subclasses need only implement the value getter to control how the child animations are combined. Can be chained to combine more than 2 animations. [...]
Cubic
A cubic polynomial mapping of the unit interval. [...]
Curve
A mapping of the unit interval to the unit interval. [...]
CurvedAnimation
An animation that applies a curve to another animation. [...]
Curves
A collection of common animation curves. [...]
CurveTween
Transforms the value of the given animation by the given curve. [...]
ElasticInCurve
An oscillating curve that grows in magnitude while overshooting its bounds. [...]
ElasticInOutCurve
An oscillating curve that grows and then shrinks in magnitude while overshooting its bounds. [...]
ElasticOutCurve
An oscillating curve that shrinks in magnitude while overshooting its bounds. [...]
FlippedCurve
A curve that is the reversed inversion of its given curve. [...]
Interval
A curve that is 0.0 until begin, then curved (according to curve from 0.0 to 1.0 at end, then 1.0. [...]
IntTween
An interpolation between two integers that rounds. [...]
ProxyAnimation
An animation that is a proxy for another animation. [...]
RectTween
An interpolation between two rectangles. [...]
ReverseAnimation
An animation that is the reverse of another animation. [...]
ReverseTween<T>
A Tween that evaluates its parent in reverse.
SawTooth
A sawtooth curve that repeats a given number of times over the unit interval. [...]
SizeTween
An interpolation between two sizes. [...]
StepTween
An interpolation between two integers that floors. [...]
Threshold
A curve that is 0.0 until it hits the threshold, then it jumps to 1.0. [...]
TickerFuture
An object representing an ongoing Ticker sequence. [...]
TrainHoppingAnimation
This animation starts by proxying one animation, but can be given a second animation. When their times cross (either because the second is going in the opposite direction, or because the one overtakes the other), the animation hops over to proxying the second animation, and the second animation becomes the new "first" performance. [...]
Tween<T extends dynamic>
A linear interpolation between a beginning and ending value. [...]

Constants

kAlwaysCompleteAnimation → const Animation<double>
An animation that is always complete. [...]
const _AlwaysCompleteAnimation()
kAlwaysDismissedAnimation → const Animation<double>
An animation that is always dismissed. [...]
const _AlwaysDismissedAnimation()

Enums

AnimationStatus
The status of an animation

Typedefs

AnimationStatusListener(AnimationStatus status) → void
Signature for listeners attached using Animation.addStatusListener.

Exceptions / Errors

TickerCanceled
Exception thrown by Ticker objects on the TickerFuture.orCancel future when the ticker is canceled.