I find that following the movement of `Toggleable`...
# compose
s
I find that following the movement of
Toggleable
into a modifier, the bounds on the ripple applied are incorrect. I have the below code, but the ripple now extends to fill the full square bounds rather than the shape's bounds. How should this be rectified?
Copy code
Surface(
        shape = RoundedCornerShape(8.dp),
        modifier = Modifier.toggleable(
            value = selected,
            onValueChange = { ... }
        )
) {
    ...
}
Do I need to do my own
RippleIndication
for this effect?
r
I used a
Box
to handle the toggleable modifier
👍 2
s
Sounds reasonable, cheers 🙂
r
It’s what the Alt-Enter quickfix suggestion did for me :))
😅 1
s
Aha I should have thought to pay attention to that, eh 😆