I noticed that there isn’t a `Modifier.margin` in ...
# compose
s
I noticed that there isn’t a
Modifier.margin
in compose. Is there a way to achieve something similar to margin?
a
What about
Modifier.offset
?
v
You’d have to use
Modifier.padding
itself. There is a really good thread around this. Let me share it.
s
Thanks
b
if you are using ConstraintLayout you could use linkTo method which takes anchor and margin arguments
1