Animated version of Positioned which automatically transitions the child's position over a given duration whenever the given position changes.

Only works if it's the child of a Stack.

Inheritance

Constructors

AnimatedPositioned({Key key, Widget child, double left, double top, double right, double bottom, double width, double height, Curve curve: Curves.linear, @required Duration duration })

Creates a widget that animates its position implicitly.

AnimatedPositioned.fromRect({Key key, Widget child, Rect rect, Curve curve: Curves.linear, @required Duration duration })

Creates a widget that animates the rectangle it occupies implicitly.

Properties

bottom double

The offset of the child's bottom edge from the bottom of the stack.

read-only
child Widget

The widget below this widget in the tree.

read-only
height double

The child's height.

read-only
left double

The offset of the child's left edge from the left of the stack.

read-only

The offset of the child's right edge from the right of the stack.

read-only
top double

The offset of the child's top edge from the top of the stack.

read-only
width double

The child's 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() → _AnimatedPositionedState

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