Stack class

A widget that positions its children relative to the edges of its box.

Inheritance

Constructors

Stack({Alignment alignment = Alignment.topLeft, StackFit fit = StackFit.loose, Overflow overflow = Overflow.clip, List<Widget> children = const <Widget>[]})

Properties

alignment Alignment
How to align the non-positioned and partially-positioned children in the stack.
final
box PdfRect?
The bounding box of this widget, calculated at layout time
getter/setter pairinherited
children List<Widget>
finalinherited
fit StackFit
How to size the non-positioned children in the stack.
final
hashCode int
The hash code for this object.
no setterinherited
overflow Overflow
Whether overflowing children should be clipped.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

debugPaint(Context context) → void
inherited
layout(Context context, BoxConstraints constraints, {bool parentUsesSize = false}) → void
First widget pass to calculate the children layout and bounding box
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Context context) → void
Draw itself and its children, according to the calculated box.offset
override
toString() String
A string representation of this object.
inherited

Operators

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