Hey, can we lerp on the numbers of maxLines on a T...
# compose
g
Hey, can we lerp on the numbers of maxLines on a Text? 🤔
a
How would you interpolate integers?
But just make an animated state value and round it
g
It will basically jump at 50% from 2 lines to 1, indeed
That could be actually good enough
g
are you trying to make an expandable text 😄
It will basically jump at 50% from 2 lines to 1, indeed
will make the animation jarring imo
g
Yes, that's what I'm looking to do, in a Collapsible TopAppBar. Open it should show two lines minimum or all the text it contains, and closed one max line.... Interesting, right?