Row

fun UiScope.Row(modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null, spacing: Int = 0, horizontalArrangement: Arrangement = Arrangement.Start, verticalAlignment: VerticalAlignment = VerticalAlignment.Top, content: RowScope.() -> Unit)(source)

Emits one row container with the descriptions produced by its callback.

The callback scope is confined to the constructing thread and is closed immediately after the callback returns.

Parameters

modifier

ordered active behavior applied to the row itself, including sizing, padding, paint, semantics, focus, and input behavior.

key

optional stable identity among direct siblings.

spacing

non-negative fixed spacing between direct children.

horizontalArrangement

main-axis child arrangement.

verticalAlignment

default cross-axis child alignment.

content

callback that emits zero or more direct children.

Throws

when the enclosing scope has escaped its callback or constructing thread.

when content fails; the exact callback failure is propagated.