Hi Guys, I got an interesting question about jetpack compose margin.
As we can implement margin using padding or *Spacer*;
Is it better to use padding instead?
I said that because I now each composable is passed through compose, layout, drawing steps and I thought setting padding is just done on layout phase of that composable but Spacer will be passed in 3 phases separately. And Spacer creates extra Layout.
Am I right?!
#kotlin#compose
c
Chrimaeon
03/06/2022, 9:41 AM
I guess you’ll get a answer if you post this in #compose instead of tagging it. 😅
☝️ 2
m
Mahmoud
03/06/2022, 9:54 AM
I wasn't in compose. I'll join and ask there. Thanks @Chrimaeon