https://kotlinlang.org logo
#compose
Title
# compose
b

bharat to

11/13/2020, 7:43 AM
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

József Szilvási

11/13/2020, 9:02 AM
Modifier.clickable(indication = null)
b

bharat to

11/13/2020, 9:08 AM
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

Mark Murphy

11/13/2020, 1:10 PM
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

bharat to

11/13/2020, 1:26 PM
Yes, that's what I thought. Thanks
3 Views