Created
March 30, 2023 09:24
-
-
Save alohaabhi/388b8e7cba20811cb4fddf99dbbc3e63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var circleScale by remember { mutableStateOf(1f) } | |
Box( | |
modifier = Modifier | |
.scale(circleScale) | |
.requiredSize(100.dp) | |
.clip(CircleShape) | |
.background(MaterialTheme.colorScheme.primaryContainer) | |
) | |
Button(onClick = { | |
circleScale = 0.5f | |
}) { | |
Text(text = "Hit") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment