PaddingModifierFieldValue

class PaddingModifierFieldValue(start: Dp, end: Dp, top: Dp, bottom: Dp) : ModifierFieldValue

A modifier field value that applies padding to a component.

Allows configuring padding values for all four sides (start, end, top, bottom) of a component through the Preview Lab interface.

Parameters

start

The start padding value

end

The end padding value

top

The top padding value

bottom

The bottom padding value

Constructors

Link copied to clipboard
constructor(start: Dp, end: Dp, top: Dp, bottom: Dp)

Types

Link copied to clipboard
open class Factory(initialStart: Dp? = null, initialEnd: Dp? = null, initialTop: Dp? = null, initialBottom: Dp? = null) : ModifierFieldValueFactory<PaddingModifierFieldValue>

Factory for creating PaddingModifierFieldValue instances with configurable initial values.

Properties

Link copied to clipboard
var bottom: Dp
Link copied to clipboard
var end: Dp
Link copied to clipboard
var start: Dp
Link copied to clipboard
var top: Dp

Functions

Link copied to clipboard
open override fun Builder()

Renders the UI builder interface for configuring this modifier. This composable is typically displayed in the Preview Lab control panel.

Link copied to clipboard
open override fun Modifier.createModifier(): Modifier

Creates a modifier from this field value.

Link copied to clipboard

Combines this modifier field value with another to create a list.