Row

data class Row(val width: Constraint = Constraint.Wrap, val height: Constraint = Constraint.Wrap, val margin: Margin = Margin.Zero, val overflow: Overflow = Overflow.Clip, val horizontalAlignment: MainAxisAlignment = MainAxisAlignment.Start, val verticalAlignment: CrossAxisAlignment = CrossAxisAlignment.Start, val onScroll: (offset: Px) -> Unit? = null, val children: RowScope.() -> Unit)

Lays out widgets horizontally in a row.

Constructors

Link copied to clipboard
constructor(width: Constraint = Constraint.Wrap, height: Constraint = Constraint.Wrap, margin: Margin = Margin.Zero, overflow: Overflow = Overflow.Clip, horizontalAlignment: MainAxisAlignment = MainAxisAlignment.Start, verticalAlignment: CrossAxisAlignment = CrossAxisAlignment.Start, onScroll: (offset: Px) -> Unit? = null, children: RowScope.() -> Unit)

Properties

Link copied to clipboard

A slot to add widgets in.

Link copied to clipboard

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

Sets the horizontal alignment for widgets in this row.

Link copied to clipboard

Applies margin (space) around the row.

Link copied to clipboard
val onScroll: (offset: Px) -> Unit? = null

Invoked when the container scrolls. The function's offset is represented in units in the host's coordinate system.

Link copied to clipboard

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

Sets the default vertical alignment for widgets in this row.

Link copied to clipboard

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