Sometimes designers use "lineHeight" attribute in ...
# compose
d
Sometimes designers use "lineHeight" attribute in Figma to expand a text style height. For example on the below image textSize is
15dp
, but lineHeight is
24dp
. And that's used across all screens (UiKit). How would you encode this universally with Compose?
TextStyle.lineHeight
works only on paragraphs, and setting
Modifier.height(24.dp)
on
Text
doesn't center it vertically inside. So far the only solution that works is having a
Box
around the text, but that feels like rather verbose solution... or not? UPD. screen shot in the thread
a
There has been a discussion here.
🙏 1
c
I don't know if this means anything to anyone... but my design team just stopped caring about the slight differences so I never actually really go to fully solve this "issue". /shruggie