FlowRow
fun FlowRow(modifier: Modifier = Modifier, mainAxisSize: SizeMode = SizeMode.Wrap, mainAxisAlignment: FlowMainAxisAlignment = FlowMainAxisAlignment.Start, mainAxisSpacing: Dp = 0.dp, crossAxisAlignment: FlowCrossAxisAlignment = FlowCrossAxisAlignment.Start, crossAxisSpacing: Dp = 0.dp, lastLineMainAxisAlignment: FlowMainAxisAlignment = mainAxisAlignment, content: @Composable () -> Unit)(source)
A composable that places its children in a horizontal flow. Unlike Row, if the horizontal space is too small to put all the children in one row, multiple rows may be used.
Note that just like Row, flex values cannot be used with FlowRow.
Parameters
modifier
The modifier to be applied to the FlowRow.
mainAxisSize
The size of the layout in the main axis direction.
mainAxisAlignment
The alignment of each row's children in the main axis direction.
mainAxisSpacing
The main axis spacing between the children of each row.
crossAxisAlignment
The alignment of each row's children in the cross axis direction.
crossAxisSpacing
The cross axis spacing between the rows of the layout.
lastLineMainAxisAlignment
Overrides the main axis alignment of the last row.