Chris Johnson
10/20/2021, 3:23 PMcomposed
modifier here.
@SuppressLint("UnnecessaryComposedModifier")
@Stable
fun Modifier.clickableNoIndication(onClick: () -> Unit): Modifier = composed {
clickable(onClick = onClick, indication = null, interactionSource = remember { MutableInteractionSource() })
}
I have to add the suppression otherwise it complains. But if I don't use it, I can't use remember. Am I missing something simple?Louis Pullen-Freilich [G]
10/20/2021, 3:40 PMChris Johnson
10/20/2021, 3:48 PM