Column

data class Column(val width: Constraint, val height: Constraint, val margin: Margin, val overflow: Overflow, val horizontalAlignment: CrossAxisAlignment, val verticalAlignment: MainAxisAlignment, val children: ColumnScope.() -> Unit)

Lays out widgets vertically in a column.

Constructors

Link copied to clipboard
constructor(width: Constraint, height: Constraint, margin: Margin, overflow: Overflow, horizontalAlignment: CrossAxisAlignment, verticalAlignment: MainAxisAlignment, children: ColumnScope.() -> Unit)

Properties

Link copied to clipboard

A slot to add widgets in.

Link copied to clipboard
val height: Constraint

Sets whether the column's height will wrap its contents (Constraint.Wrap) or match the height of its parent (Constraint.Fill).

Link copied to clipboard
val horizontalAlignment: CrossAxisAlignment

Sets the default horizontal alignment for widgets in this column.

Link copied to clipboard
val margin: Margin

Applies margin (space) around the column.

Link copied to clipboard
val overflow: Overflow

Sets whether the column allows scrolling (Overflow.Scroll) if its content overflows its bounds or if it does not allow scrolling (Overflow.Clip).

Link copied to clipboard
val verticalAlignment: MainAxisAlignment

Sets the vertical alignment for widgets in this column.

Link copied to clipboard
val width: Constraint

Sets whether the column's width will wrap its contents (Constraint.Wrap) or match the width of its parent (Constraint.Fill).