Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

scale

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

scale

Source set: Android
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.

Parameters

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

scale

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

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

Parameters

scale Multiplier to scale content along the horizontal and vertical axis

Last updated: