RowScope

@Immutable
interface RowScope

Scope for the children of Row.

Functions

Link copied to clipboard
@Stable
abstract fun Modifier.align(alignment: Alignment.Vertical): Modifier

Align the element vertically within the Row. This alignment will have priority over the Row's verticalAlignment parameter.

Link copied to clipboard
@Stable
abstract fun Modifier.weight(weight: Float, fill: Boolean = true): Modifier

Size the element's width proportional to its weight relative to other weighted sibling elements in the Row. The parent will divide the horizontal space remaining after measuring unweighted child elements and distribute it according to this weight. When fill is true, the element will be forced to occupy the whole width allocated to it. Otherwise, the element is allowed to be smaller - this will result in Row being smaller, as the unused allocated width will not be redistributed to other siblings.