If I want to get the measurements for a given Comp...
# compose
a
If I want to get the measurements for a given Composable - say a Text, how would I go about that? For reference, my use case is that I'm trying to basically animate a column up or down a certain number of items within the column. So my thought is I'd use one of the animation state primitives and change the translation y by some multiple of the height of an item inside the column
z
Either
Modifier.onSizeChanged
or
BoxWithConstraints
might work
1
a
I'll take a look at those, thanks!
a
Generally prefer onSizeChanged for things like this, BoxWithConstraints is generally for making structural changes to the UI in response to available space to consume
👍 2