miqbaldc
10/08/2023, 7:57 AMRow
atm, with Arrangement.SpaceBetween
and has a transparent Box to fill the right gap
But after checking the below component (Profile Picture Placeholder), the Profil
text is not center aligned properly, due to I’m adding a padding to end of the icon Text Edit
in the right of Profil
text.
Any other alternatives or maybe because I’m not using the Row
component properly?
Any suggestion would be great! Thanks!ascii
10/08/2023, 8:50 AMSpacer
instead of Box there, to make your intentions more obvious (dummy view to take up space). Although I'd just get rid of it entirely, and remove horizontalArrangement
in favour of Modifier.weight(1f) on Text.Icon
over Image
if you're not doing any image-specific adjustments like content scale etc.miqbaldc
10/09/2023, 6:16 AMoffset(12.dp)
, I use this approaches for now! for the weight(1f)
I’m not sure to use it, as it keep the text to be left aligned insteadascii
10/09/2023, 6:54 AMTextAlign.Center
on the Text