A GridDelegate the places its children in order throughout the grid.

Subclasses must still provide a mechanism for sizing the grid by implementing getGridSpecification, and should also provide efficent versions of the intrinsic sizing functions (getMinIntrinsicWidth and company).

Inheritance

Constructors

GridDelegateWithInOrderChildPlacement({double columnSpacing: 0.0, double rowSpacing: 0.0, EdgeInsets padding: EdgeInsets.zero })

Initializes columnSpacing, rowSpacing, and padding for subclasses.

Properties

columnSpacing double

The horizontal padding between columns.

read-only
padding EdgeInsets

Insets for the entire grid.

read-only
rowSpacing double

The vertical padding between rows.

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

getChildPlacement(GridSpecification specification, int index, Object placementData) GridChildPlacement

Override this method to control where children are placed in the grid.

shouldRelayout(GridDelegateWithInOrderChildPlacement oldDelegate) bool

Override this method to return true when the children need to be laid out.

getGridSpecification(BoxConstraints constraints, int childCount) GridSpecification

Override this method to control size of the columns and rows.

inherited
getMaxIntrinsicHeight(double width, int childCount) double

Returns the smallest height beyond which increasing the height never decreases the preferred width.

inherited
getMaxIntrinsicWidth(double height, int childCount) double

Returns the smallest width beyond which increasing the width never decreases the preferred height.

inherited
getMinIntrinsicHeight(double width, int childCount) double

Return the minimum height that this grid could be without failing to paint its contents within itself.

inherited
getMinIntrinsicWidth(double height, int childCount) double

Returns the minimum width that this grid could be without failing to paint its contents within itself.

inherited
noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Returns a string representation of this object.

inherited