A container that gradually changes its values over a period of time.

This class is useful for generating simple implicit transitions between different parameters to Container. For more complex animations, you'll likely want to use a subclass of Transition or use an AnimationController yourself.

Properties that are null are not animated.

Inheritance

Constructors

AnimatedContainer({Key key, Widget child, BoxConstraints constraints, Decoration decoration, Decoration foregroundDecoration, EdgeInsets margin, EdgeInsets padding, Matrix4 transform, double width, double height, Curve curve: Curves.linear, @required Duration duration })

Creates a container that animates its parameters implicitly.

Properties

child → Widget

The widget below this widget in the tree.

read-only
constraints → BoxConstraints

Additional constraints to apply to the child.

read-only
decoration → Decoration

The decoration to paint behind the child.

read-only
foregroundDecoration → Decoration

The decoration to paint in front of the child.

read-only
height → double

If non-null, requires the decoration to have this height.

read-only
margin → EdgeInsets

Empty space to surround the decoration.

read-only
padding → EdgeInsets

Empty space to inscribe inside the decoration.

read-only
transform → Matrix4

The transformation matrix to apply before painting the container.

read-only
width → double

If non-null, requires the decoration to have this width.

read-only
curve → Curve

The curve to apply when animating the parameters of this container.

read-only, inherited
duration → Duration

The duration over which to animate the parameters of this container.

read-only, inherited
hashCode → int

Get a hash code for this object.

read-only, inherited
key → Key

Controls how one widget replaces another widget in the tree.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

createState() → _AnimatedContainerState

Creates the mutable state for this widget at a given location in the tree.

debugFillDescription(List<String> description) → void

Add additional information to the given description for use by toString.

createElement() → StatefulElement

Creates a StatefulElement to manage this widget's location in the tree.

inherited
noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited
toStringShort() → String

A short, textual description of this widget.

inherited