Function

padding

Adds padding to each edge of the content.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

padding

Android
public fun RemoteModifier.padding(
    left: RemoteFloat = 0f.rf,
    top: RemoteFloat = 0f.rf,
    right: RemoteFloat = 0f.rf,
    bottom: RemoteFloat = 0f.rf,
): RemoteModifier

Adds padding to each edge of the content.

Parameters

left Padding at the left edge.
top Padding at the top edge.
right Padding at the right edge.
bottom Padding at the bottom edge.

padding

Android
public fun RemoteModifier.padding(all: RemoteFloat): RemoteModifier

Adds all padding to each edge of the content.


padding

Android
public fun RemoteModifier.padding(
    horizontal: RemoteFloat = 0f.rf,
    vertical: RemoteFloat = 0f.rf,
): RemoteModifier

Adds horizontal padding to the left and right edges, and vertical padding to the top and bottom edges.


padding

Android
public fun RemoteModifier.padding(padding: RemotePaddingValues): RemoteModifier

Adds padding defined by the padding object.


padding

Android
public fun RemoteModifier.padding(all: RemoteDp): RemoteModifier

Adds all padding to each edge of the content.


padding

Android
public fun RemoteModifier.padding(
    left: RemoteDp = 0.rdp,
    top: RemoteDp = 0.rdp,
    right: RemoteDp = 0.rdp,
    bottom: RemoteDp = 0.rdp,
): RemoteModifier

Adds padding to each edge of the content using RemoteDp values.

Parameters

left Padding at the left edge.
top Padding at the top edge.
right Padding at the right edge.
bottom Padding at the bottom edge.

padding

Android
public fun RemoteModifier.padding(
    horizontal: RemoteDp = 0.rdp,
    vertical: RemoteDp = 0.rdp,
): RemoteModifier

Adds horizontal padding to the left and right edges, and vertical padding to the top and bottom edges.