https://kotlinlang.org logo
#compose
Title
# compose
l

Lukasz Kalnik

11/07/2023, 2:59 PM
I have a following design with a
TextButton
.
TextButton
has its own paddings, but I want the vertical spacing between the items of the containing
Column
and the
Column
vertical padding to remain constant, whether the button is shown or hidden.
Currently I calculate the button top/bottom paddings and subtract them from the Column padding/Spacer height, but I wonder if there's a better way.