margins

open fun margins(value: SpacesContext.() -> Unit)

This function opens the context for defining the margin related properties.

Example call:

margins {
top { small }
left { small }
}

Parameters

value

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

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

This function opens the context for defining the margin related properties for each media device independently.

Example call:

margins(
sm = {
top { small }
left { small }
},
lg = {
top { large }
left { large }
}
)

Parameters

sm

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

md

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

lg

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

xl

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