ShadowSample
@Sampled
@Composable
fun ShadowSample() {
Box(Modifier.shadow(12.dp, RectangleShape).size(100.dp, 100.dp))
}Creates a graphicsLayer that draws a shadow.
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Robomori
Run Android emulators and devices outside Android Studio.
@Sampled
@Composable
fun ShadowSample() {
Box(Modifier.shadow(12.dp, RectangleShape).size(100.dp, 100.dp))
}Content updated: