Thread
#compose
    Colton Idle

    Colton Idle

    1 year ago
    I have a column with horizontal padding
    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"?
    Chris Johnson

    Chris Johnson

    1 year ago
    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?
    Will Shelor

    Will Shelor

    1 year ago
    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