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}
-> Node

Stacks 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

columns

positive number of columns

alignment
  • Optional

content alignment along the main axis

Values

cross
  • Optional

content alignment along the cross axis

Values

gap

blank space between rows and columns. If omitted, the default value is used

vgap
  • Optional

blank space between rows (overrides gap for rows). If omitted, the default value is used

hgap
  • Optional

blank space between columns (overrides gap for columns). If omitted, the default value is used

width

width of the grid. No constraint if unset

height

height of the grid. No constraint if unset

body

content to stack

foreground
  • Optional

text color. Default if unset

background
  • Optional

background color. Transparent if unset

border
  • Optional

border color. Default if unset and borderwidth is set

borderwidth
  • Optional

border width. Default if unset and border is set

borderstyle
  • Optional

border style. Normal (solid) if unset and border or borderwidth is set

Values

textalignment
  • Optional

alignment of the text. alignment if unset

Values

margin
  • Optional

whitespace outside the content. None if unset

padding
  • Optional

whitespace around the content. None if unset

radius
  • Optional

corner (and border) radius. None if unset

fontsize
  • Optional

relative font size of the text. Normal if unset

Values

fontweight
  • Optional

font weight of the text. Normal if unset

Values

fontstyle
  • Optional

font style of the text. Normal if unset

Values

fontvariant
  • Optional

font variant of the text. Normal if unset

Values

textdecoration
  • Optional

text decoration of the text. None if unset

Values

textcase
  • Optional

text case of the text. Normal if unset

Values

Throws

Wiki page

stacks