Radoslaw Juszczyk
03/09/2021, 7:35 PMSurface
?
I have tried:
Surface(modifier=Modifier.clickable(indication=….))
but indication
is not resolved
what is the correct way to do that?Luke
03/09/2021, 8:11 PMindication
to .clickable
, you also got to give interactionSource
Luke
03/09/2021, 8:15 PM.clickable
adds ripple by default?Radoslaw Juszczyk
03/09/2021, 8:28 PM.clickable(
onClick = {},
indication = rememberRipple(),
interactionSource = remember { MutableInteractionSource() },
)
nah, by default it was just solid highlightRadoslaw Juszczyk
03/09/2021, 8:29 PMLuke
03/09/2021, 8:31 PMLouis Pullen-Freilich [G]
03/09/2021, 9:59 PMnah, by default it was just solid highlightIf you have a
MaterialTheme
in your application it will configure this for you, so it is a ripple by defaultRadoslaw Juszczyk
03/10/2021, 6:11 AM