If I have a Text, which I want to take let’s say a...
# compose
s
If I have a Text, which I want to take let’s say at least 48.dp high. Yet I want it to be adjusted to the bottom-left edge of this space, so that if it grows, it grows only towards up instead of uniformly both up and down, how can I do that? Is my best bet to wrap it in a box with BottomStart alignment or is there something in the Text() API that I am missing?
a
This should do the trick:
Copy code
Modifier
    .heightIn(min = 48.dp)
    .wrapContentSize(align = Alignment.BottomStart)
s
Of course, I always seem to miss using wrapContentSize to my advantage. Thanks a ton Albert!