Container

constructor(width: Size? = null, height: Size? = null, fullWidth: Boolean = false, foregroundColor: Color? = null, backgroundColor: Color? = null, borderColor: Color? = null, borderWidth: Sizes? = null, borderStyle: Container.BorderStyle? = null, margin: Sizes? = null, padding: Sizes? = null, cornerRadius: Sizes? = null, alignment: Container.Alignment? = null, textAlignment: Container.TextAlignment? = null, float: Container.FloatAlignment? = null, children: List<Node>)

Parameters

width

width of the container

height

height of the container

fullWidth

whether the container should take up the full width of the parent. Overridden by width

foregroundColor

text color

backgroundColor

background color

borderColor

border color

borderWidth

border width

borderStyle

border style

margin

whitespace outside the content

padding

whitespace around the content

cornerRadius

border radius of the container

alignment

alignment of the content

textAlignment

alignment of the text

float

floating position of the container within the subsequent content