FixedTrackSize class

Sizes the track to a specific number of pixels.

This is the cheapest way to size a track.

Inheritance

Constructors

FixedTrackSize(double sizeInPx, {String? debugLabel})
const

Properties

debugLabel String?
A label that is included in debug output
finalinherited
flex double?
The flex factor to apply to the track if there is any room left over when laying out the grid. The remaining space is distributed to any tracks with flex in proportion to their flex value (higher values get more space).
no setterinherited
hashCode int
The hash code for this object.
no setteroverride
isFlexible bool
Returns whether this sizing function consumes space left over from the initial sizing of the grid.
no setterinherited
isIntrinsic bool
Returns whether this sizing function requires measurement of a track's items to resolve its size.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeInPx double
The size (width for columns, height for rows) the track should occupy in logical pixels.
final

Methods

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
isFixedForConstraints(TrackType type, BoxConstraints gridConstraints) bool
Returns whether this size can resolve to a fixed value provided the grid's box constraints.
override
maxIntrinsicSize(TrackType type, Iterable<RenderBox> items, {required double crossAxisSizeForItem(RenderBox)}) double
The ideal cross axis size of this track. This must be equal to or greater than the minIntrinsicSize for the same type. The track might be bigger than this size, e.g. if the track is flexible or if the grid's size ends up being forced to be bigger than the sum of all the maxIntrinsicSize values.
override
minIntrinsicSize(TrackType type, Iterable<RenderBox> items, {double crossAxisSizeForItem(RenderBox)?}) double
The smallest width (for columns) or height (for rows) that a track can have.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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