TrackCell class
Where one child of a Tracks sits, and the box it asks for there.
- Inheritance
Constructors
- TrackCell({Key? key, int? column, int? row, int? columnEnd, int? rowEnd, int columnSpan = 1, int rowSpan = 1, CellAlign? align, CellAlign? justify, EdgeInsets margin = EdgeInsets.zero, AutoEdges autoMargin = AutoEdges.none, double? width, double? widthFraction, double? height, double? heightFraction, double? minWidth, double? minWidthFraction, double? maxWidth, double? maxWidthFraction, double? minHeight, double? maxHeight, int z = 0, bool clips = false, bool compressible = false, bool room = false, double? ratio, bool positioned = false, double? left, double? right, double? top, double? bottom, double? leftFraction, double? rightFraction, double? topFraction, double? bottomFraction, bool subgrid = false, required Widget child})
-
const
Properties
- align → CellAlign?
-
Overrides the grid's Tracks.align and Tracks.justify.
final
- autoMargin → AutoEdges
-
The margin edges that take the room left over instead of a length --
how css-align-3 10.1 centres an item in its area.
final
- bottom → double?
-
A positioned item's insets, inward from its area. Null is
auto: that edge is wherever the item's size and its other edge leave it, and with bothautothe item's alignment places it.final - bottomFraction → double?
-
The same insets as shares of the area: leftFraction and
rightFraction of its width, topFraction and bottomFraction of
its height. A share is read in place of the length beside it.
final
- child → Widget
-
The widget below this widget in the tree.
finalinherited
- clips → bool
-
Whether the item clips what overflows it: a scroll container, whose
automatic minimum is zero (css-grid-1 6.6) and which a
fit-content()track holds only up to its limit.final - column → int?
-
Zero-based track indices. Null means "wherever the flow puts it", and
a NEGATIVE index counts back from the end of the explicit grid: -1 is
the last track.
final
- columnEnd → int?
-
The track this item stops BEFORE, zero-based, counting back from the
end when negative: -1 is past the last track. Null leaves the end to
columnSpan / rowSpan.
final
- columnSpan → int
-
How many tracks this item covers, where no end is given.
final
- compressible → bool
-
Whether the item is a picture -- a replaced box -- whose share of its
area is OF NOTHING when the tracks ask its least width: a percentage
widthormax-widthon a replaced box resolves against zero for its min-content contribution and asautofor its max-content one (css-sizing-3 5.2.2), so the picture asks anautocolumn for nothing and grows it only as far as the grid has room. A product site's hero picture iswidth: 1920px; max-width: 100%in a grid as wide as the page: Chrome draws it the page's width, and a floor of the 1920 held the column, and the picture, at 1920 (fixtures/grid-item-pct-cap-placed). As FlexCell.compressible.final - debugTypicalAncestorWidgetClass → Type
-
Describes the RenderObjectWidget that is typically used to set up the
ParentData that applyParentData will write to.
no setteroverride
- debugTypicalAncestorWidgetDescription → String
-
Describes the RenderObjectWidget that is typically used to set up the
ParentData that applyParentData will write to.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
The size the item asks for, which is part of what sizes the track it
is in (css-grid-1 12.5). Both a length and a fraction is their sum:
calc(50% + 10px). The fractions are of the item's AREA.final - heightFraction → double?
-
The size the item asks for, which is part of what sizes the track it
is in (css-grid-1 12.5). Both a length and a fraction is their sum:
calc(50% + 10px). The fractions are of the item's AREA.final - justify → CellAlign?
-
Overrides the grid's Tracks.align and Tracks.justify.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- left → double?
-
A positioned item's insets, inward from its area. Null is
auto: that edge is wherever the item's size and its other edge leave it, and with bothautothe item's alignment places it.final - leftFraction → double?
-
The same insets as shares of the area: leftFraction and
rightFraction of its width, topFraction and bottomFraction of
its height. A share is read in place of the length beside it.
final
- margin → EdgeInsets
-
Space round the item's box, which may be negative.
final
-
The part of each margin edge that is a SHARE of the item's area,
0.1formargin-left: 10%, added to the edge's margin length. Every side is a share of the area's WIDTH, the top and the bottom as much as the left and the right (css-grid-1 6.4, CSS 2.1 8.3), and the margin moves the item inside its area without shrinking the box its own percentages read. While the tracks are sized that width is not all known: a share ACROSS is of nothing, the cyclic percentage css-sizing-3 5.2.1 resolves against zero, and a share DOWN is one of the width the columns give the item once they are sized.final - maxHeight → double?
-
The floor and the cap on each axis.
final
- maxWidth → double?
-
The floor and the cap on each axis.
final
- maxWidthFraction → double?
-
The floor and the cap on each axis.
final
- minHeight → double?
-
The floor and the cap on each axis.
final
- minWidth → double?
-
The floor and the cap on each axis.
final
- minWidthFraction → double?
-
The floor and the cap on each axis.
final
- positioned → bool
-
Whether the item is OUT OF THE FLOW:
position: absolutein a grid that is its containing block (css-grid-1 9.1). It takes no cell and sizes no track; its containing block is the area its lines name, each line as the edge of the track beside it, and a line it does not name is this box's own edge -- with no row and no rowEnd it runs the grid's whole height. width and the other sizes are then shares of that area, and it stands at its insets inward from it.final - ratio → double?
-
The item's preferred aspect RATIO, width over height (css-sizing-4
4.1). It turns a size on one axis into a size on the other, a floor
or a cap included, which is part of what sizes the track the item is
in; and it leaves the item no
autosize for its area to stretch on both axes. An item of no stated size whose area stretches it both ways is then as big as the area on one axis and as the ratio makes it on the other -- the COVERING box, not the contained one, because its automatic minimum size is transferred through the ratio from the stretched axis (css-grid-1 6.6):aspect-ratio: 2in a 100x100 area is 200x100. A floor the page wrote in place ofauto(min-width: 0) has nothing to transfer, and the item is the contained 100x50.final - right → double?
-
A positioned item's insets, inward from its area. Null is
auto: that edge is wherever the item's size and its other edge leave it, and with bothautothe item's alignment places it.final - rightFraction → double?
-
The same insets as shares of the area: leftFraction and
rightFraction of its width, topFraction and bottomFraction of
its height. A share is read in place of the length beside it.
final
- room → bool
-
Whether the item's AREA is a room (Inset.room) for the shares inside
it that are of its containing block (Inset.ofRoom): a grid item's
containing block is its grid area (css-grid-1 9, CSS 2.1 10.1), and a
percentage padding is a share of that block's width (CSS 2.1 8.4)
whatever width the item itself comes to.
width: calc(50% + 10px); min-width: 200px; padding: 0 5%pads by 5% of the area both where the share sizes the item and where the floor does. Where the area is not known -- the item's contribution to the tracks that make it -- a share of it is nothing (css-sizing-3 5.2.1). The area this grid lays the item out in; a subgrid's item, in the subgrid's own.final - row → int?
-
Zero-based track indices. Null means "wherever the flow puts it", and
a NEGATIVE index counts back from the end of the explicit grid: -1 is
the last track.
final
- rowEnd → int?
-
The track this item stops BEFORE, zero-based, counting back from the
end when negative: -1 is past the last track. Null leaves the end to
columnSpan / rowSpan.
final
- rowSpan → int
-
How many tracks this item covers, where no end is given.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subgrid → bool
-
Whether the item is a grid whose rows are this grid's: the child holds
a Tracks with Tracks.subgridRows. Its items size this grid's rows
in its place, and it is stretched down the rows it spans. Or whose
COLUMNS are, with Tracks.subgridColumns: its items size this grid's
columns, it is stretched across them, and it sizes the rows it spans
as any item does, as tall as it comes to on its columns.
final
- top → double?
-
A positioned item's insets, inward from its area. Null is
auto: that edge is wherever the item's size and its other edge leave it, and with bothautothe item's alignment places it.final - topFraction → double?
-
The same insets as shares of the area: leftFraction and
rightFraction of its width, topFraction and bottomFraction of
its height. A share is read in place of the length beside it.
final
- width → double?
-
The size the item asks for, which is part of what sizes the track it
is in (css-grid-1 12.5). Both a length and a fraction is their sum:
calc(50% + 10px). The fractions are of the item's AREA.final - widthFraction → double?
-
The size the item asks for, which is part of what sizes the track it
is in (css-grid-1 12.5). Both a length and a fraction is their sum:
calc(50% + 10px). The fractions are of the item's AREA.final - z → int
-
Paint order among siblings: lowest first, ties in document order.
final
Methods
-
applyParentData(
RenderObject renderObject) → void -
Write the data from this widget into the given render object's parent data.
override
-
createElement(
) → ParentDataElement< TrackCellParentData> -
Inflates this configuration to a concrete instance.
inherited
-
debugCanApplyOutOfTurn(
) → bool -
Whether the ParentDataElement.applyWidgetOutOfTurn method is allowed
with this widget.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
debugIsValidRenderObject(
RenderObject renderObject) → bool -
Checks if this widget can apply its parent data to the provided
renderObject.inherited -
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
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited