RotateSample
@Sampled
@Composable
fun RotateSample() {
Box(Modifier.rotate(45f).size(100.dp, 100.dp))
}Sets the degrees the view is rotated around the center of the composable.
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Robomori
Run Android emulators and devices outside Android Studio.
@Sampled
@Composable
fun RotateSample() {
Box(Modifier.rotate(45f).size(100.dp, 100.dp))
}Content updated: