Created
October 5, 2022 11:41
-
-
Save cp-radhika-s/349984e4e37ef0b98065d987bfca9644 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
val interactionSource = remember { MutableInteractionSource() } | |
val isPressed = interactionSource.collectIsPressedAsState() | |
val cornerRadius by animateDpAsState(targetValue = if (isPressed.value) 10.dp else 50.dp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment