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

See also
wrap

Summary

Public companion properties

FlexWrap

Items are laid out in a single line.

Cmn
FlexWrap

Items wrap onto multiple lines if they exceed the main axis size.

Cmn
FlexWrap

Items wrap onto multiple lines if they exceed the main axis size.

Cmn

Public functions

open String
Cmn

Public companion properties

NoWrap

val NoWrapFlexWrap

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.

Wrap

val WrapFlexWrap

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).

WrapReverse

val WrapReverseFlexWrap

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).

Public functions

toString

open fun toString(): String