androidx.compose.foundation.layout

BoxScope

Interface · from org.jetbrains.compose.foundation:foundation-layout:1.12.2

No hand-written docs yet.

A BoxScope provides a scope for the children of Box and BoxWithConstraints.

interface BoxScope

Kinds of BoxScope

Anywhere a BoxScope is expected, you can pass any of these.

How to get one

Or create one of the kinds listed above.

Used by

Parameters that take a BoxScope.

Functions

align

fun Modifier.align(alignment: Alignment): Modifier

Pull the content element to a specific Alignment within the Box. This alignment will have priority over the Box's alignment parameter.

matchParentSize

fun Modifier.matchParentSize(): Modifier

Size the element to match the size of the Box after all other content elements have been measured.

Library docs

A BoxScope provides a scope for the children of Box and BoxWithConstraints.