Row class
Lay out children in a horizontal row. Places sized children by their intrinsic size, then distributes remaining space among flexible children. Wrap children in Flexible or Inflexible components to change how this component treats them.
- Inheritance
Constructors
-
Row({required List<
Renderable> children, FlexAlignment alignment = FlexAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.stretch, bool crossAxisTight = false, int? passthrough}) -
Lay out children in a horizontal row.
Places sized children by their intrinsic size, then distributes remaining space among flexible children.
Wrap children in Flexible or Inflexible components to change how this component treats them.
const
Properties
- alignment → FlexAlignment
-
Alignment method for main axis.
finalinherited
- axis → Axis
-
Main axis of this layout.
finalinherited
-
children
→ List<
Renderable> -
List of children to align.
finalinherited
- crossAxisAlignment → CrossAxisAlignment
-
Alignment method in the cross axis.
finalinherited
- crossAxisTight → bool
-
Tightens size to the largest child cross axis size.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- passthrough → int?
-
Pass key input events and usage info requests to child with this index.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectableChildren
→ Iterable<
Renderable> -
Children which can be selected (i.e. not wrapped in SkipSelect).
no setterinherited
-
unwrapChildren
→ Iterable<
Renderable> -
All children stripped of SkipSelect utility wrapper.
no setterinherited
Methods
-
getSize(
WriggleContext context, Axis axis, int crossSize) → int? -
Report this item's intrinsic size, or null if it has none.
inherited
-
getUsageInfo(
WriggleContext context) → UsageInfo -
Return usage info for this renderable, or redirect to its child.
inherited
-
keyPressed(
WriggleContext context, KeyInput key) → bool -
Handle key presses. Return
trueif the key was absorbed, orfalseif another listener further up the tree should handle it.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
WriggleContext context, int width, int height) → AxelMap -
Produce an AxelMap of the specified size to be shown on screen.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited