I have a column with horizontal padding ```Column...
# compose
c
I have a column with horizontal padding
Copy code
Column(modifier = Modifier.padding(horizontal = 16.dp)) {
every item need the horizontal padding except for 1 item in the col. Is there an easy way to "opt out"?
c
AFAIK there's no modifier that will just "do" that. You could just set the one item that needs to not have padding a negative offset of
-16.dp
but otherwise the solution would get more complex. I.e maybe a custom layout?
👍 1
w
You could also create a base Modifier object, but instead of passing it to the column pass it to the children of the column except for the one that does not need the padding