Created
October 5, 2022 11:43
-
-
Save cp-radhika-s/3b5c4720ca2fe07ec50947cabab3689d 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 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