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<double> as input. [...]
Animation<T>
An animation with a value of type T. [...]
AnimationController
A controller for an animation. [...]
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. [...]
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. [...]
ConstantTween<T>
A tween with a constant value.
Cubic
A cubic polynomial mapping of the unit interval. [...]
Curve
An easing curve, i.e. 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 when the value of that animation crosses the value of the second (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. [...]
Tween<T extends dynamic>
A linear interpolation between a beginning and ending value. [...]
TweenSequence<T>
Enables creating an Animation whose value is defined by a sequence of Tweens. [...]
TweenSequenceItem<T>
A simple holder for one element of a TweenSequence.

Mixins

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. [...]
AnimationWithParentMixin<T>
Implements most of the Animation interface by deferring its behavior to a given parent Animation. [...]

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

AnimationBehavior
Configures how an AnimationController behaves when animations are disabled. [...]
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.