Colton Idle
03/24/2022, 5:00 AMCard
My code
Card(
modifier = modifier,
backgroundColor = color,
onClick = onClick ?: {},
indication = if (onClick == null) null else LocalIndication.current,
) { content() }
if I use the alt+enter helper it removes the indication =...
. How can I set an indication on the card now though?Colton Idle
03/24/2022, 5:16 AMif (onClick == null) {
Card(modifier = modifier, backgroundColor = color) { content() }
} else {
Card(onClick = onClick, modifier = modifier, backgroundColor = color) {
content()
}
}
Louis Pullen-Freilich [G]
03/24/2022, 2:13 PMLouis Pullen-Freilich [G]
03/24/2022, 2:15 PMColton Idle
03/24/2022, 2:51 PMLouis Pullen-Freilich [G]
03/24/2022, 2:53 PMZach Klippenstein (he/him) [MOD]
03/24/2022, 3:04 PMcontent
in a movableContentOf
.Louis Pullen-Freilich [G]
03/24/2022, 3:15 PMColton Idle
03/24/2022, 7:14 PM