WrapBox

@Composable
fun WrapBox(modifier: Modifier = Modifier, align: Float = 0.0f, childSpacing: Int = 0, childSpacingUnit: LengthUnit = LengthUnit.PX, justify: JustifyMode = JustifyMode.NONE, justifyLastLine: Boolean = false, lineHomogeneous: Boolean = false, lineSpacing: Int = 0, lineSpacingUnit: LengthUnit = LengthUnit.PX, naturalLineLength: Int = -1, naturalLineLengthUnit: LengthUnit = LengthUnit.PX, packDirection: PackDirection = PackDirection.START_TO_END, wrapPolicy: WrapPolicy = WrapPolicy.NATURAL, wrapReverse: Boolean = false, content: @Composable () -> Unit)

Creates a org.gnome.adw.WrapBox, a box-like widget that can wrap into multiple lines.

Parameters

modifier

Compose Modifier for layout and styling.

align

The alignment of the children within each line.

childSpacing

The spacing between widgets on the same line.

childSpacingUnit

The length unit for child spacing.

justify

Determines whether and how each complete line should be stretched to fill the entire widget.

justifyLastLine

Whether the last line should be stretched to fill the entire widget.

lineHomogeneous

Whether all lines should take the same amount of space.

lineSpacing

The spacing between lines.

lineSpacingUnit

The length unit for line spacing.

naturalLineLength

Determines the natural size for each line.

naturalLineLengthUnit

The length unit for natural line length.

packDirection

The direction children are packed in each line.

wrapPolicy

The policy for line wrapping.

wrapReverse

Whether wrap direction should be reversed.

content

The composable content to display.