androidx.compose.foundation.layout

FlowColumn

Composable function · from org.jetbrains.compose.foundation:foundation-layout:1.12.2

One of the flow types. It works like FlowRow. Only the parameters that differ are described here.

The same, turned vertical: items go top to bottom, and a new column starts when the height is full. Give it a height, or it never wraps.

Parameters

@Composable
fun FlowColumn(
    modifier: Modifier = Modifier,
    verticalArrangement: Arrangement.Vertical = Arrangement.Top,
    horizontalArrangement: Arrangement.Horizontal = Arrangement.Start,
    itemHorizontalAlignment: Alignment.Horizontal = Alignment.Start,
    maxItemsInEachColumn: Int = Int.MAX_VALUE,
    maxLines: Int = Int.MAX_VALUE,
    content: @Composable FlowColumnScope.() -> Unit,
)

itemHorizontalAlignment: Alignment.HorizontalOptionalSince 1.8

Default: Alignment.Start

How items of different widths line up within a column.

maxItemsInEachColumn: IntOptional

Default: Int.MAX_VALUE

The most items in one column.

content: @Composable FlowColumnScope.() -> UnitRequired

The items.

Same as in FlowRow: modifier, verticalArrangement, horizontalArrangement, maxLines.

Flow types