https://kotlinlang.org logo
s

Siyamed

07/08/2020, 4:05 AM
No, there is no min lines
t

tonnyl

07/08/2020, 4:07 AM
will add it in the future or never?
s

Siyamed

07/08/2020, 4:09 AM
It was not in our plans for the near term as far as i remember.
Min lines is useful but it is the same as setting the height itself.
In compose we cant set the height using would be the problem
t

tonnyl

07/08/2020, 4:13 AM
ok, got it. thx 👍
s

saket

10/13/2021, 9:36 PM
Siyamed, is there a feature request somewhere that I can star? I wanna bump this request.
Min lines is useful but it is the same as setting the height itself.
I think there are cases where these two things aren’t the same. We have a horizontal list where we wanna make sure that all items have the same height. I was previously using
minLines
to achieve this.
I presume I can manually calculate the height based on the font size and line spacing, but it’d be nice to have an official API.