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

spierce7

07/27/2020, 5:51 PM
I noticed that there isn’t a
Modifier.margin
in compose. Is there a way to achieve something similar to margin?
a

Alejandro Rios

07/27/2020, 5:51 PM
What about
Modifier.offset
?
v

Vinay Gaba

07/27/2020, 5:51 PM
You’d have to use
Modifier.padding
itself. There is a really good thread around this. Let me share it.
s

spierce7

07/27/2020, 6:02 PM
Thanks
b

Bacho Kurtanidze

07/28/2020, 8:18 AM
if you are using ConstraintLayout you could use linkTo method which takes anchor and margin arguments
1
3 Views