Function

size

Sets the width and height of the content.

size

Source set: JvmAndAndroid
public fun RemoteModifier.size(width: RemoteDp, height: RemoteDp): RemoteModifier

Sets the width and height of the content.

Parameters

width The width to apply.
height The height to apply.

Return

a RemoteModifier that sets the size to width by height

size

Source set: JvmAndAndroid
public fun RemoteModifier.size(size: RemoteDp): RemoteModifier

Sets both the width and height of the content to size.

Parameters

size The width and height to apply in RemoteDp.

Return

a RemoteModifier that sets both width and height to size

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: