Is it possible to get parent Box width?
# compose
b
Is it possible to get parent Box width?
a
For what purpose? The optimal answer will vary based on whether you want to alter the composition itself vs. change layout or drawing based on that information.
b
I basically have a box with textfield and another box inside. I want inner box to be of x width (set by me) and match textField height (and in turn parent box's)
p
Can you post an image to visualise it? 🙂
a
https://developer.android.com/codelabs/jetpack-compose-layouts#9 might be relevant but agreed, a quick sketch might help visualize it
b
IntrinsicSize was exactly what I needed
👍 2