Created
October 5, 2022 11:40
-
-
Save cp-radhika-s/b4c4690ceb9bb7c9ef9f42705e02aa09 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
@Composable | |
fun ShakeEffect(){ | |
Button(onClick = { | |
//Clicked | |
}, shape = RoundedCornerShape(12.dp), contentPadding = PaddingValues(16.dp), | |
modifier = Modifier.shakeClickEffect()) { | |
Text(text = "Click me") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment