androidx.compose.foundation.layout
ContextualFlowColumnScopeExperimentalDeprecated
Interface · from org.jetbrains.compose.foundation:foundation-layout:1.12.2
No hand-written docs yet.
Provides a scope for items within a ContextualFlowColumn.
interface ContextualFlowColumnScope : ColumnScope
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 maxWidth and maxHeightInLine 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 maxWidth and maxHeightInLine limitations.
maxWidth
val maxWidth: Dp
Sets the maximum width (cross-axis dimension) that the upcoming UI component can occupy, based on its lineIndex and indexInLine. Exceeding this width might result in the component not being displayed, depending on the ContextualFlowColumnOverflow.Visible overflow configuration.
maxHeightInLine
val maxHeightInLine: Dp
Establishes the maximum height (main-axis dimension) permissible for the next UI component, aligned with its lineIndex and indexInLine. Should the component's height exceed this limit, it may be shifted to the subsequent column in ContextualFlowColumn, subject to the predefined constraints.
Functions
fillMaxColumnWidthSince 1.8Experimental
fun Modifier.fillMaxColumnWidth(
fraction: Float = 1f,
): Modifier
Have the item fill (possibly only partially) the max width of the widest item in the column it was placed in, within the FlowColumn.
Library docs
Provides a scope for items within a ContextualFlowColumn.