Skip to content

Instantly share code, notes, and snippets.

@cp-radhika-s
Created October 5, 2022 11:43
Show Gist options
  • Save cp-radhika-s/3b5c4720ca2fe07ec50947cabab3689d to your computer and use it in GitHub Desktop.
Save cp-radhika-s/3b5c4720ca2fe07ec50947cabab3689d to your computer and use it in GitHub Desktop.
@Composable
fun NoRippleEffect2() {
Box(
modifier = Modifier
.height(height = 38.dp)
.background(
color = pink,
shape = RoundedCornerShape(percent = 12)
)
.clickable(
interactionSource = remember { MutableInteractionSource() },
indication = null
) {
//Clicked
}
.padding(horizontal = 20.dp),
contentAlignment = Alignment.Center
) {
Text(
text = "Click me",
color = Color.White
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment