Samir Basnet
03/18/2021, 2:28 PMClickableText(
modifier = Modifier
.align(Alignment.CenterHorizontally)
.padding(top = 10.dp)
.indication(
interactionSource = remember { MutableInteractionSource() },
indication = rememberRipple(true)
),
text = noAccount,
style = MaterialTheme.typography.subtitle2
) {
Timber.d("$it")
}
How to add ripple in ClickableText?Above code did not work.Am i doing it wrong?Zach Klippenstein (he/him) [MOD]
03/18/2021, 5:46 PMMutableInteractionSource
(you’ll want to hoist that into a val somewhere so you can send events to it)