StackBuilder class

Stack建造者 - 专门处理Stack布局

Constructors

StackBuilder.new({required List<Widget> children, AlignmentGeometry alignment = AlignmentDirectional.topStart, TextDirection? textDirection, StackFit fit = StackFit.loose, Clip clipBehavior = Clip.hardEdge})

Properties

alignment AlignmentGeometry
final
children List<Widget>
final
clipBehavior Clip
final
fit StackFit
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textDirection TextDirection?
final

Methods

build() Widget
直接构建Stack
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
relative() Widget
relative -->gt; 相对定位容器(就是普通的Stack)
toString() String
A string representation of this object.
inherited

Operators

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