samueldple
06/24/2020, 7:53 PMToggleable
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?
Surface(
shape = RoundedCornerShape(8.dp),
modifier = Modifier.toggleable(
value = selected,
onValueChange = { ... }
)
) {
...
}
Do I need to do my own RippleIndication
for this effect?romainguy
06/24/2020, 7:56 PMBox
to handle the toggleable modifiersamueldple
06/24/2020, 7:57 PMromainguy
06/24/2020, 7:57 PMsamueldple
06/24/2020, 7:57 PM