As solved here, I disable the tap flashing by setting the indication to null.
However, this is not working for Button or Icons?!
As solved here, I disable the tap flashing by setting the indication to null.
However, this is not working for Button or Icons?!
On
You can use
Modifier.pointerInput(Unit) {
detectTapGestures(
onPress = { /* Called when the gesture starts */ },
onDoubleTap = { /* Called on Double Tap */ },
onLongPress = { /* Called on Long Press */ },
onTap = { /* Called on Tap */ }
)
}
instead of onClick().It' will not show the wave effect when click the button.
In the
Buttonyou can't use theindication=nullin theclickablemodifier since it is defined internally by the component which usesindication = rememberRipple(). This creates and remembers aRippleusing values provided byRippleTheme.You can provide a custom
LocalRippleThemeto override the default behaviour.Something like:
with: