by @alexstyl
✉️ Leave your feedback

← Back to Foundation Layout

FlowColumn

Component
in
Foundation Layout
. Since 0.1.0-dev15

Overview

Examples

Community Notes

FlowColumn is a layout that fills items from top to bottom, and when it runs out of space on the bottom, moves to the next "column" or "line" on the right or left based on ltr or rtl layouts, and then continues filling items from top to bottom.

It supports ltr in LTR layouts, by placing the first column to the left, and then moving to the right It supports rtl in RTL layouts, by placing the first column to the right, and then moving to the left

Example:

Overloads

FlowColumn

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

Parameters

NameDescription
modifierThe modifier to be applied to the Row.
verticalArrangementThe vertical arrangement of the layout's children.
horizontalArrangementThe horizontal arrangement of the layout's virtual columns
maxItemsInEachColumnThe maximum number of items per column
contentThe content as a ColumnScope @see FlowRow @see androidx.compose.foundation.layout.Column
Previous ComponentConstraintLayout
Next ComponentFlowRow