Compose Modifier

rotate

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

RotateSample

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