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

rotate

Sets the degrees the view is rotated around the center of the composable.

RotateSample

@Sampled
@Composable
fun RotateSample() {
    Box(Modifier.rotate(45f).size(100.dp, 100.dp))
}

Content updated: