Stack class

Overlays children in document order.

With only positioned children, bounded axes fill their available extent and unbounded axes derive a finite extent from child sizes and edge offsets. Negative offsets may still overflow that extent and are clipped by default.

Inheritance

Constructors

Stack({Key? key, List<Widget> children = const <Widget>[], StackFit fit = StackFit.loose, Alignment alignment = Alignment.topLeft, bool clip = true})
Creates a stack with hard-edge clipping by default.
const

Properties

alignment → Alignment
Placement of non-positioned and partially positioned children.
final
children → List<Widget>
The widgets below this widget in the tree
finalinherited
clip → bool
Whether descendants are clipped to the stack bounds.
final
fit → StackFit
How non-positioned children are constrained.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how this widget replaces another of the same type.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited