Is there an easy way to extend the click area of a
Button
, apart from creating physical padding around it by enclosing it in a
Box
etc ?
👍 2
a
Adam Powell
07/23/2021, 11:39 PM
No, but there's likely to be some work in this area for touchability post-1.0
👍 4
t
Tash
07/24/2021, 3:05 AM
Gotcha, thanks Adam! In the meantime, I'm guessing enclosing components in a
Box + Modifier.padding
or such is the best approach.
a
Adam Powell
07/24/2021, 4:45 AM
For now. I'd like for the touch dispatch system to be able to enforce a minimum touch target size and disambiguate across nesting layers at a global level
👍🏼 1
👍 3
t
tad
07/24/2021, 6:10 PM
I've hacked this for height with a combination of
height(0.dp)
,
wrapContentSize()
, and
size(48.dp)
tad
07/24/2021, 6:10 PM
But that's arguably not easy
t
Tash
07/26/2021, 11:27 PM
@tad, I see. Did that create extra click area without adding tangible padding/space?