← Back to Foundation Layout
FlowColumn
Component
in
Foundation Layout
. Since 0.1.0-dev15Overview
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
Name | Description |
---|---|
modifier | The modifier to be applied to the Row. |
verticalArrangement | The vertical arrangement of the layout's children. |
horizontalArrangement | The horizontal arrangement of the layout's virtual columns |
maxItemsInEachColumn | The maximum number of items per column |
content | The content as a ColumnScope @see FlowRow @see androidx.compose.foundation.layout.Column |
Previous Component← ConstraintLayout
Next ComponentFlowRow →