Function

padding

Adds padding to each edge of the content.

padding

Source set: JvmAndAndroid
public fun RemoteModifier.padding(
    start: RemoteFloat = 0f.rf,
    top: RemoteFloat = 0f.rf,
    end: RemoteFloat = 0f.rf,
    bottom: RemoteFloat = 0f.rf,
): RemoteModifier

Adds padding to each edge of the content.

Parameters

start Padding at the start edge.
top Padding at the top edge.
end Padding at the end edge.
bottom Padding at the bottom edge.

Return

a RemoteModifier that applies padding to each edge

padding

Source set: JvmAndAndroid
public fun RemoteModifier.padding(all: RemoteFloat): RemoteModifier

Adds all padding to each edge of the content.

Parameters

all Padding in pixels applied to all four edges.

Return

a RemoteModifier that applies all padding to all edges

padding

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

Adds horizontal padding to the start and end edges, and vertical padding to the top and bottom edges.

Parameters

horizontal Padding in pixels applied to the start and end edges.
vertical Padding in pixels applied to the top and bottom edges.

Return

a RemoteModifier that applies horizontal and vertical padding

padding

Source set: JvmAndAndroid
public fun RemoteModifier.padding(paddingValues: RemotePaddingValues): RemoteModifier

Adds padding defined by the paddingValues object.

Parameters

paddingValues The RemotePaddingValues describing the padding for each edge.

Return

a RemoteModifier that applies paddingValues

padding

Source set: JvmAndAndroid
public fun RemoteModifier.padding(all: RemoteDp): RemoteModifier

Adds all padding to each edge of the content.

Parameters

all Padding in RemoteDp applied to all four edges.

Return

a RemoteModifier that applies all padding to all edges

padding

Source set: JvmAndAndroid
public fun RemoteModifier.padding(
    start: RemoteDp = 0.rdp,
    top: RemoteDp = 0.rdp,
    end: RemoteDp = 0.rdp,
    bottom: RemoteDp = 0.rdp,
): RemoteModifier

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

Parameters

start Padding at the start edge.
top Padding at the top edge.
end Padding at the end edge.
bottom Padding at the bottom edge.

Return

a RemoteModifier that applies padding to each edge

padding

Source set: JvmAndAndroid
public fun RemoteModifier.padding(
    horizontal: RemoteDp = 0.rdp,
    vertical: RemoteDp = 0.rdp,
): RemoteModifier

Adds horizontal padding to the start and end edges, and vertical padding to the top and bottom edges.

Parameters

horizontal Padding in RemoteDp applied to the start and end edges.
vertical Padding in RemoteDp applied to the top and bottom edges.

Return

a RemoteModifier that applies horizontal and vertical padding

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: