margin

open fun margin(value: ScaledValueProperty)

This function sets the margin property.

Example call:

margin { small }

Parameters

value

extension function parameter for small media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.spaces that offer the properties of ScaledValue

open fun margin(sm: ScaledValueProperty? = null, md: ScaledValueProperty? = null, lg: ScaledValueProperty? = null, xl: ScaledValueProperty? = null)

This function sets the margin property for each media device independently.

Example call:

margin(
sm = { small }
lg = { normal }
)

Parameters

lg

extension function parameter for large media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.spaces that offer the properties of ScaledValue

md

extension function parameter for medium sized media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.spaces that offer the properties of ScaledValue

sm

extension function parameter for small media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.spaces that offer the properties of ScaledValue

xl

extension function parameter for extra large media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.spaces that offer the properties of ScaledValue