grid
.grid columns:{Int} \
alignment:{Stacked.MainAxisAlignment = Stacked.MainAxisAlignment.CENTER} \
cross:{Stacked.CrossAxisAlignment = Stacked.CrossAxisAlignment.CENTER} \
gap:{Size? = null} \
vgap:{Size? = gap} \
hgap:{Size? = gap} \
width:{Size? = null} \
height:{Size? = null} \
foreground:{Color? = null} \
background:{Color? = null} \
border:{Color? = null} \
borderwidth:{Sizes? = null} \
borderstyle:{NodeStyle.BorderStyle? = null} \
textalignment:{NodeStyle.TextAlignment? = null} \
margin:{Sizes? = null} \
padding:{Sizes? = null} \
radius:{Sizes? = null} \
fontsize:{TextTransformData.Size? = null} \
fontweight:{TextTransformData.Weight? = null} \
fontstyle:{TextTransformData.Style? = null} \
fontvariant:{TextTransformData.Variant? = null} \
textdecoration:{TextTransformData.Decoration? = null} \
textcase:{TextTransformData.Case? = null} \
body:{MarkdownContent}
-> NodeStacks content in a grid layout.
Each child is placed in a cell, and a row of cells ends when its cell count reaches columns.
Return
the new Stacked node
Parameters
positive number of columns
- Optional
- Likely named
blank space between rows and columns. If omitted, the default value is used
- Optional
blank space between rows (overrides gap for rows). If omitted, the default value is used
- Optional
blank space between columns (overrides gap for columns). If omitted, the default value is used
- Optional
- Likely named
width of the grid. No constraint if unset
- Optional
- Likely named
height of the grid. No constraint if unset
- Likely a body argument
content to stack
- Optional
text color. Default if unset
- Optional
background color. Transparent if unset
- Optional
border color. Default if unset and borderwidth is set
- Optional
border width. Default if unset and border is set
- Optional
whitespace outside the content. None if unset
- Optional
whitespace around the content. None if unset
- Optional
corner (and border) radius. None if unset
- Optional
text decoration of the text. None if unset
Values
Throws
if columns is non-positive