Defines the direction of the main axis in a FlexBox container.

The main axis determines the primary direction in which children are laid out. The cross axis is always perpendicular to the main axis.

See also
direction

Summary

Public companion properties

FlexDirection

Main axis is vertical, items placed from top to bottom.

Cmn
FlexDirection

Main axis is vertical, items placed from bottom to top.

Cmn
FlexDirection

Main axis is horizontal, items placed from start (left in LTR) to end.

Cmn
FlexDirection

Main axis is horizontal, items placed from end (right in LTR) to start.

Cmn

Public functions

open String
Cmn

Public companion properties

Column

val ColumnFlexDirection

Main axis is vertical, items placed from top to bottom.

ColumnReverse

val ColumnReverseFlexDirection

Main axis is vertical, items placed from bottom to top.

Row

val RowFlexDirection

Main axis is horizontal, items placed from start (left in LTR) to end.

RowReverse

val RowReverseFlexDirection

Main axis is horizontal, items placed from end (right in LTR) to start.

Public functions

toString

open fun toString(): String