miqbaldc10/08/2023, 7:57 AM
and has a transparent Box to fill the right gap But after checking the below component (Profile Picture Placeholder), the
text is not center aligned properly, due to I’m adding a padding to end of the icon
in the right of
text. Any other alternatives or maybe because I’m not using the
component properly? Any suggestion would be great! Thanks!
ascii10/08/2023, 8:50 AM
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
in favour of Modifier.weight(1f) on Text.
if you're not doing any image-specific adjustments like content scale etc.
miqbaldc10/09/2023, 6:16 AM
, I use this approaches for now! for the
I’m not sure to use it, as it keep the text to be left aligned instead
ascii10/09/2023, 6:54 AM
on the Text