🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

scale

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

ScaleNonUniformSample

@Sampled
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun ScaleNonUniformSample() {
    RemoteBox(RemoteModifier.scale(2f.rf, 3f.rf).size(100.rdp, 100.rdp).background(Color.Red.rc))
}

ScaleUniformSample

@Sampled
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun ScaleUniformSample() {
    RemoteBox(RemoteModifier.scale(2f.rf).size(100.rdp, 100.rdp).background(Color.Red.rc))
}

Content updated: