widgets/box/stack/stack_object 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>
A value which might change over time, moving forward or backward.
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.
AnimationStyle
Used to override the default parameters of an animation.
CatmullRomCurve
An animation easing curve that passes smoothly through the given control points using a centripetal Catmull-Rom spline.
CatmullRomSpline
A 2D spline that passes smoothly through the given control points using a centripetal Catmull-Rom spline.
Color
An immutable color value in ARGB format.
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 parametric animation easing curve, i.e. a mapping of the unit interval to the unit interval.
Curve2D
Abstract class that defines an API for evaluating 2D parametric curves.
Curve2DSample
A class that holds a sample of a 2D parametric curve, containing the value (the X, Y coordinates) of the curve at the parametric value t.
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.
FlippedTweenSequence
Enables creating a flipped Animation whose value is defined by a sequence of Tweens.
Interval
A curve that is 0.0 until begin, then curved (according to curve) from 0.0 at begin to 1.0 at end, then remains 1.0 past end.
IntTween
An interpolation between two integers that rounds.
Offset
An immutable 2D floating-point offset.
ParametricCurve<T>
An abstract class providing an interface for evaluating a parametric curve.
ProxyAnimation
An animation that is a proxy for another animation.
Rect
An immutable, 2D, axis-aligned, floating-point rectangle whose coordinates are relative to a given origin.
RectTween
An interpolation between two rectangles.
ReverseAnimation
An animation that is the reverse of another animation.
ReverseTween<T extends Object?>
A Tween that evaluates its parent in reverse.
SawTooth
A sawtooth curve that repeats a given number of times over the unit interval.
Simulation
The base class for all simulations.
Size
Holds a 2D floating-point size.
SizeTween
An interpolation between two sizes.
Split
A curve that progresses according to beginCurve until split, then according to endCurve.
SpringDescription
Structure that describes a spring's constants.
StackObject
A widget that positions its children relative to the edges of its box.
StepTween
An interpolation between two integers that floors.
ThreePointCubic
A cubic polynomial composed of two curves that share a common center point.
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.
TickerProvider
An interface implemented by classes that can vend Ticker objects.
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 Object?>
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.

Enums

AnimationBehavior
Configures how an AnimationController behaves when animations are disabled.
AnimationStatus
The status of an animation.

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.
kAlwaysDismissedAnimation → const Animation<double>
An animation that is always dismissed.

Typedefs

AnimatableCallback<T> = T Function(double value)
A typedef used by Animatable.fromCallback to create an Animatable from a callback.
AnimationStatusListener = void Function(AnimationStatus status)
Signature for listeners attached using Animation.addStatusListener.
ValueListenableTransformer<T> = T Function(T)
Signature for method used to transform values in Animation.fromValueListenable.
VoidCallback = void Function()
Signature of callbacks that have no arguments and return no data.

Exceptions / Errors

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