Is there a way for a composable ‘touch area’ to ex...
# compose
n
Is there a way for a composable ‘touch area’ to extend outside of the layout area? A hacky way maybe?
e
You might want to have a look at
LocalMinimumTouchTargetEnforcement
and how it’s used.
n
Yeah I did. But it looks like it acts on the layout size anyway. At least that’s what I got
a
It automatically does this for a minimum touch size of 48dp regardless of layout size. The material components change was for additional design reasons to encourage spacing clickable elements far enough apart from one another
n
I’m interested in this minimum size of 48dp, could you point me to source code? Is it something in compose UI or a material thing?
it's a compose-ui thing
n
Great, thank you!