direction

open fun direction(value: DirectionValues.() -> DirectionProperty)

This function sets the flex-direction property for all media devices.

Example call:

direction { row }

Parameters

value

extension function parameter to bring the predefined properties of DirectionValues into the scope of the functional expression

open fun direction(sm: DirectionValues.() -> DirectionProperty? = null, md: DirectionValues.() -> DirectionProperty? = null, lg: DirectionValues.() -> DirectionProperty? = null, xl: DirectionValues.() -> DirectionProperty? = null)

This function sets the flex-direction property for each media device independently.

Example call:

direction(
sm = { column }, // small devices apply better to vertical layouts!
lg = { row }
)

Parameters

sm

extension function parameter to bring the predefined properties of DirectionValues into the scope of the functional expression for small media devices

md

extension function parameter to bring the predefined properties of DirectionValues into the scope of the functional expression for medium sized media devices

lg

extension function parameter to bring the predefined properties of DirectionValues into the scope of the functional expression for large media devices

xl

extension function parameter to bring the predefined properties of DirectionValues into the scope of the functional expression for extra large media devices