Function

scale

Scale the contents of the composable by the following scale factors along the horizontal and vertical axis respectively.

scale

Source set: JvmAndAndroid
public fun RemoteModifier.scale(scaleX: RemoteFloat, scaleY: RemoteFloat): RemoteModifier

Scale the contents of the composable by the following scale factors along the horizontal and vertical axis respectively. Negative scale factors can be used to mirror content across the corresponding horizontal or vertical axis.

Example of scaling a composable independently along the horizontal and vertical axes:

Parameters

scaleX Multiplier to scale content along the horizontal axis
scaleY Multiplier to scale content along the vertical axis

Return

a RemoteModifier that scales content by scaleX and scaleY

scale

Source set: JvmAndAndroid
public fun RemoteModifier.scale(scale: RemoteFloat): RemoteModifier

Scale the contents of both the horizontal and vertical axis uniformly by the same scale factor.

Example of uniformly scaling a composable along both axes:

Parameters

scale Multiplier to scale content along the horizontal and vertical axis

Return

a RemoteModifier that uniformly scales content by scale

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: