Grid class

Lays out children in a grid.

Inheritance

Constructors

Grid({required List<Renderable> children, required int crossAxisCount, Axis mainAxis = Axis.vertical, FlexAlignment mainAxisAlignment = FlexAlignment.start, FlexAlignment crossAxisAlignment = FlexAlignment.tight})
Lays out children in a grid.
const

Properties

children → List<Renderable>
Children to lay out.
final
crossAxisAlignment → FlexAlignment
FlexAlignment along cross axis items.
final
crossAxisCount → int
Number of children to display in each cross axis item.
final
hashCode → int
The hash code for this object.
no setterinherited
mainAxis → Axis
Direction of main axis.
final
mainAxisAlignment → FlexAlignment
FlexAlignment along main axis.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(WriggleContext context) → Renderable
Return a Renderable which is to be displayed.
override
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 true if the key was absorbed, or false if 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