Adrian Landborn
04/23/2021, 9:56 AMRipple
-indication for Buttons and Cards? Or to override rememberRipple
in a custom theme?Ravi
04/23/2021, 10:08 AMfun Modifier.clickCustom(
color: Color? = null,
enabled: Boolean = true,
onClick: () -> Unit = {}
): Modifier = composed {
clickable(
enabled = enabled,
interactionSource = remember { MutableInteractionSource() },
indication = rememberRipple(color = color ?: colors.primary),
onClick = onClick,
)
}
I've added this to rows/columns but I've find a way for ButtonAdrian Landborn
04/23/2021, 10:10 AMRavi
04/23/2021, 11:17 AMRavi
04/23/2021, 11:17 AMAdrian Landborn
04/23/2021, 12:04 PMLouis Pullen-Freilich [G]
04/23/2021, 12:13 PMLouis Pullen-Freilich [G]
04/23/2021, 12:13 PM