A node's Layout, field by field (JSON under layout).
width, height, constraints, padding and aspectRatio are the node's own box; margin is its outer spacing; the rest only mean something under a given parent (parentData).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Constants
-
align
→ const PropDef<
Alignment?> -
Under a row/column: alignment in its slot (
Align). -
all
→ const List<
PropDef< Object?> > -
aspectRatio
→ const PropDef<
double?> -
basis
→ const PropDef<
double?> -
Under a wrapping row, column or flex: CSS
flex-basis. -
box
→ const List<
PropDef< Object?> > - The node's own box.
-
columnSpan
→ const PropDef<
int> -
Under a gridView: CSS
grid-column: span n. -
columnStart
→ const PropDef<
int?> -
Under a gridView: CSS
grid-column-start. -
constraints
→ const PropDef<
BoxConstraints> -
{"minWidth", "maxWidth", "minHeight", "maxHeight"}: limits on the size, whatever the mode (Flutter'sConstrainedBox). A fill width withmaxWidthgrows with its parent up to the cap. -
flex
→ const PropDef<
int> -
Under a row/column: share of the free space (
Expanded.flex). -
height
→ const PropDef<
AxisSize> -
The node's height: a number (fixed),
{"hug": n},{"fill": n}or{"flexible": n}, aswidth. Without one the node is 0 high. -
heightFactor
→ const PropDef<
double?> -
margin
→ const PropDef<
EdgeInsets> -
order
→ const PropDef<
int> -
Under a row, column or flex: CSS
order, the position it is laid out and painted at (ascending; equal orders keep the children's order). -
padding
→ const PropDef<
EdgeInsets> -
parentData
→ const List<
PropDef< Object?> > - What a parent reads (Flutter's parent data).
-
rowSpan
→ const PropDef<
int> -
Under a gridView: CSS
grid-row: span n. -
rowStart
→ const PropDef<
int?> -
Under a gridView: CSS
grid-row-start. -
squeezable
→ const PropDef<
bool> -
Under a row/column: a hugging child that may shrink (
Flexible). -
width
→ const PropDef<
AxisSize> -
The node's width: a number (fixed),
{"hug": n}(its content),{"fill": n}(the room its parent gives) or{"flexible": n}(up to n). n is the design size. Without one the node is 0 wide. -
widthFactor
→ const PropDef<
double?> -
A share of the room its parent gives on an axis (Flutter's
FractionallySizedBox): a progress bar's fill iswidthFactor: 0.6of its track. Null: sized by width / height. -
x
→ const PropDef<
AxisPosition> -
Under a freeform parent (
Positioned/Align). -
y
→ const PropDef<
AxisPosition>