How are we meant to work with padding on component...
# compose
c
How are we meant to work with padding on components that preserve a minmum interaction size? It seems that padding is always added, even if the minimum interaction size has already claimed a sufficient amount of white space. This is relevant with icon button, card, and similar
I find myself having to use individual padding modifiers on every component in a list instead of of just using the spacedBy() arrangement param in Column() to work around the minimum interaction size of components like Button() Has anyone figured out a way to override the calculation so that it includes padding from other and/or parent composables?
1
a
You can just disable that by
Copy code
CompositionLocalProvider(
    LocalMinimumInteractiveComponentEnforcement provides false
) { ... }
and add padding yourself.