How to turnoff ripple effect that comes with `Modi...
# compose
b
How to turnoff ripple effect that comes with
Modifier.clickable()
? for every
*Button
this behavior is common. I couldn't find any online resources to do this in compose.
j
Modifier.clickable(indication = null)
b
Thanks, this is working for
Modifier.clickable
. The indication parameter is not there for
*Button
. Can we do it for
IconButton
and
CheckBox
I guess we should implement custom component then.
m
If the composables that you are using are in the
material
package (e.g.,
IconButton()
), they will follow Material Design rules and usually do not offer ways of opting out. You will need to look at their implementations and see if they are based on other composables less tied to Material Design.
IconButton()
, as it turns out, is just a
Box
.
b
Yes, that's what I thought. Thanks