Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

layout

Creates a node that allows changing how the wrapped element is measured and laid out.

layout

Source set: Android
public fun SubspaceModifier.layout(
    measure: SubspaceMeasureScope.(SubspaceMeasurable, VolumeConstraints) -> SubspaceMeasureResult
): SubspaceModifier

Creates a node that allows changing how the wrapped element is measured and laid out.

Parameters

measure function that defines the measurement and placement logic.

Last updated: