Skip to content

ThemePadding

@Serializable



data class ThemePadding(
    val all: Int = 0, 
    val horizontal: Int = 0, 
    val vertical: Int = 0, 
    val left: Int = 0, 
    val right: Int = 0, 
    val top: Int = 0, 
    val bottom: Int = 0
)

Inner spacing a composable using a theme should reserve around its own content, so e.g. a button's label never renders flush against the button's edges once it grows past ComposableTheme.minSize to fit a longer label.

Constructors

ThemePadding

constructor(
    all: Int = 0, 
    horizontal: Int = 0, 
    vertical: Int = 0, 
    left: Int = 0, 
    right: Int = 0, 
    top: Int = 0, 
    bottom: Int = 0
)

Properties

all

val all: Int

bottom

val bottom: Int

horizontal

left

val left: Int
val right: Int

top

val top: Int

vertical

val vertical: Int