FlexWrap

Class

Common
@ExperimentalFlexBoxApi
value class FlexWrap @PublishedApi internal constructor(private val bits: Int)

Defines whether flex items are forced onto a single line or can wrap onto multiple lines.

Companion Object

Properties

Common
inline val NoWrap

Items are laid out in a single line. Items will shrink to fit the container if their FlexConfigScope.shrink factor allows it. If they cannot shrink enough to fit the main axis (for example, due to their minimum intrinsic sizes), they will visually overflow on main axis of the container.

Common
inline val Wrap

Items wrap onto multiple lines if they exceed the main axis size. New lines are added along the cross axis, starting from the cross-start edge and flowing toward the cross-end edge. (For example, top-to-bottom in a FlexDirection.Row).

Common
inline val WrapReverse

Items wrap onto multiple lines if they exceed the main axis size. New lines are added in the reverse direction along the cross axis, starting from the cross-end edge and flowing toward the cross-start edge. (For example, bottom-to-top in a FlexDirection.Row).