Is it possible to give a Text() maxLines = 2 and f...
# compose
v
Is it possible to give a Text() maxLines = 2 and force it to occupy all the space if only 1 line provided? The idea is that I want the purple box to be the same height on different cards. But I can't play with the Size of Yellow Box, because I am trying to support accessibility and made in the phone settings all texts to be doubled.
c
set both minLines and maxLines to 2
v
There are no such thing as minLines
a
There is
⬆️ 2
Perhaps you're using the old deprecated function, which doesn't have it. Switch to the new one.
c
There is, both in material 2 and in material 3 versions of Text
v
Not in my versions of the Material for 1.4 compose tho
c
v
Would it do the job?
c
it seems like it was introduced with 1.4.0-alpha02
v
Yea, I am seeing that they added that api in the next versions
Okay. thank you. Will try when I migrate to 1.5
👍 1