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.
Constants
- kAlwaysCompleteAnimation → Animation<double>
-
An animation that is always complete.
- kAlwaysDismissedAnimation → Animation<double>
-
An animation that is always dismissed.
Typedefs
-
AnimationStatusListener(
AnimationStatus status) → void -
Signature for listeners attached using Animation.addStatusListener.
Properties
- kDefaultSpringForce → SpringForce
-
A spring force with reasonable default values.
read-only
Enums
- AnimationStatus
-
The status of an animation
Classes
- AlwaysStoppedAnimation
-
An animation that is always stopped at a given value.
- Animatable
-
An object that can produce a value of type T given an Animation as input.
- Animation
-
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.
- AnimationMean
-
An animation of doubles that tracks the mean of two other animations.
- AnimationWithParentMixin
-
Implements most of the Animation interface, by deferring its behavior to a given parent Animation. To implement an Animation that proxies to a parent, this class plus implementing "T get value" is all that is necessary.
- ColorTween
-
An interpolation between two colors.
- CompoundAnimation
-
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.
- Force
-
A factory for simulations.
- Interval
-
A curve that is 0.0 until
start
, then curved 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.
- SawTooth
-
A sawtooth curve that repeats a given number of times over the unit interval.
- SizeTween
-
An interpolation between two sizes.
- SpringDescription
-
Structure that describes a spring's constants.
- SpringForce
-
A factory for spring-based physics simulations.
- 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.
- 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
-
A linear interpolation between a beginning and ending value.