flex

open fun flex(value: FlexItemContext.() -> Unit)

This function opens the context for defining the flex layout related properties for a flex layout child component for all media devices.

This function does not create a layout itself; for the latter have a look at Flexbox functions!

Example call:

flex {
// some functions of [FlexItemContext] with appropriate values for *all devices*
}

See also

Parameters

value

extension function parameter to bring the specialized topical functions of the FlexItemContext into the scope of the functional expression

open fun flex(sm: FlexItemContext.() -> Unit? = null, md: FlexItemContext.() -> Unit? = null, lg: FlexItemContext.() -> Unit? = null, xl: FlexItemContext.() -> Unit? = null)

This function opens the context for defining the flex layout related properties for a flex layout child component for all media devices.

This function does not create a layout itself; for the latter have a look at Flexbox functions!

Example call:

flex {
// some functions of [FlexItemContext] with appropriate values for *all devices*
}

See also

Parameters

lg

extension function parameter to bring the specialized topical functions of the FlexItemContext into the scope of the functional expression for large media devices

md

extension function parameter to bring the specialized topical functions of the FlexItemContext into the scope of the functional expression for medium sized media devices

sm

extension function parameter to bring the specialized topical functions of the FlexItemContext into the scope of the functional expression for small media devices

xl

extension function parameter to bring the specialized topical functions of the FlexItemContext into the scope of the functional expression for extra large media devices