To disable ripples on a clickable, this is the min...
# compose
c
To disable ripples on a clickable, this is the minimum code I have to write, right?
Copy code
.clickable(
                interactionSource = remember { MutableInteractionSource() },
                indication = null,
                onClick = {
                    // Handle click
                }
            )
Just curious if i can somehow omit the
interactionSource = remember...
a
What’s the reason to disable ripples?
👍 1
By removing the indication, the user won’t see any visual feedback for pressing, hovering or focusing that component
👍 1
c
We have a hidden/debug only menu thingy that we don't want to draw attention to.
but yes. in general. i love ripples!
l
At that point then maybe just manually detect tap gestures inside a pointerInput modifier, so this thing won't be visible to focus / TalkBack etc
In 1.7.0* you can pass null for interactionSource as well instead of needing to remember it
K 1
thank you color 1
c
nice. null for interactionSource is clutch