Shivam Sethi
Slava Glushenkov
Gabriele Mariotti
.graphicsLayer { scaleX = scale.value; scaleX = scale.value }
bmo
@Composable fun FrameBox(modifier: Modifier = Modifier, content: @Composable BoxScope.() -> Unit) { val scale by rememberInfiniteTransition().animateFloat( initialValue = 1f, targetValue = 1.5f, animationSpec = infiniteRepeatable( animation = tween(1000, easing = LinearEasing), repeatMode = RepeatMode.Reverse ) ) Box( modifier .border(width = 2.dp, color = MaterialTheme.colors.secondary) .graphicsLayer { scaleX = scale scaleY = scale }, content = content) }
A modern programming language that makes developers happier.