Is there a way to disable the ripple animation, ju...
# compose
v
Is there a way to disable the ripple animation, just curious, I saw there is class regarding it RippleIndication, but how to use it on any view click or any use case
k
There is a property called
Indication
in
Modifiers.clickable
which allows you to indicate when something is pressed. What I did, I set that property to
RippleIndication(radius = 0.dp)
which is not a ideal imo but it works.
z
Just pass a null Indication to disable the ripple.
k
This*
v
Thanks, passing null works