Skip to content

Instantly share code, notes, and snippets.

@cp-radhika-s
Created October 5, 2022 11:42
Show Gist options
  • Save cp-radhika-s/03acd6925530a3dac92e797f19124d85 to your computer and use it in GitHub Desktop.
Save cp-radhika-s/03acd6925530a3dac92e797f19124d85 to your computer and use it in GitHub Desktop.
@Composable
fun NoRippleEffect1() {
Button(
onClick = {
//Clicked
},
interactionSource = remember { NoRippleInteractionSource() },
shape = RoundedCornerShape(12.dp),
contentPadding = PaddingValues(16.dp),
) {
Text(text = "Button without Ripple Effect")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment