Zoltan Demant
09/03/2023, 10:44 AMCard
often has padding which makes the clickable area appropiate; whereas slapping a Modifier.clickable
directly on a Text
composable always feels wrong (to me at least) because it (a) is too small, and (b) looks odd because of its smallness, even if a boundless ripple is used.czuckie
09/03/2023, 10:46 AMczuckie
09/03/2023, 10:47 AMZoltan Demant
09/03/2023, 10:51 AMczuckie
09/03/2023, 10:53 AMascii
09/03/2023, 10:55 AMZoltan Demant
09/03/2023, 11:00 AMascii
09/03/2023, 11:02 AMascii
09/03/2023, 11:02 AMZoltan Demant
09/03/2023, 11:07 AMczuckie
09/03/2023, 11:08 AMczuckie
09/03/2023, 11:09 AMascii
09/03/2023, 11:11 AMZoltan Demant
09/03/2023, 11:11 AM16.dp
) and then offsetting the text by -16.dp
. After reading your comment about a pulse effect though, Ill look into that too - very interesting!ascii
09/03/2023, 11:11 AMalready has horizontal padding applied to itYou can specify a negative offset to counter that. I'd really recommend TextButton.
ascii
09/03/2023, 11:12 AMZoltan Demant
09/03/2023, 11:13 AMZoltan Demant
09/03/2023, 11:15 AMascii
09/03/2023, 11:17 AMModifier.semantics { role = Role.Button }
automatically. This is vital info for screen readers.Zoltan Demant
09/03/2023, 11:34 AMJohn Dior
09/04/2023, 1:03 AMColton Idle
09/10/2023, 9:23 PM