androidx.compose.foundation.layout

ContextualFlowRowScopeExperimentalDeprecated

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

No hand-written docs yet.

Defines the scope for items within a ContextualFlowRow.

interface ContextualFlowRowScope : RowScope

Is a

Properties

lineIndex

val lineIndex: Int

Identifies the row or column index where the UI component(s) are to be placed, provided they do not exceed the specified maxWidthInLine and maxHeight for that row or column.

indexInLine

val indexInLine: Int

Marks the index within the current row/column where the next component is to be inserted, assuming it conforms to the row's or column's maxWidthInLine and maxHeight limitations.

maxWidthInLine

val maxWidthInLine: Dp

Specifies the maximum permissible width (main-axis) for the upcoming UI component at the given lineIndex and indexInLine. Exceeding this width may result in the component being reallocated to the following row within the ContextualFlowRow structure, subject to existing constraints.

maxHeight

val maxHeight: Dp

Determines the maximum allowable height (cross-axis) for the forthcoming UI component, aligned with its lineIndex and indexInLine. Should this height threshold be exceeded, the component's visibility will depend on the overflow settings, potentially leading to its exclusion.

Functions

fillMaxRowHeightSince 1.8Experimental

fun Modifier.fillMaxRowHeight(
    fraction: Float = 1f,
): Modifier

Have the item fill (possibly only partially) the max height of the tallest item in the row it was placed in, within the FlowRow.

Library docs

Defines the scope for items within a ContextualFlowRow.