Row

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

Lays out widgets horizontally in a row.

Constructors

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

Properties

Link copied to clipboard

A slot to add widgets in.

Link copied to clipboard
val height: Constraint

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

Link copied to clipboard
val horizontalAlignment: MainAxisAlignment

Sets the horizontal alignment for widgets in this row.

Link copied to clipboard
val margin: Margin

Applies margin (space) around the row.

Link copied to clipboard
val overflow: Overflow

Sets whether the row 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: CrossAxisAlignment

Sets the default vertical alignment for widgets in this row.

Link copied to clipboard
val width: Constraint

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