I have custom `Layout` within a `Column` with `fil...
# compose
a
I have custom
Layout
within a
Column
with
fillMaxSize()
. The
Layout
has two children. I want the second child to tell me its own intrinsic size. Currently I'm doing
measurable.measure(constraints.copy(minWidth = 60, minHeight = 60))
. But
60
is arbitrary. How can I ask the child to tell me its intrinsic size? (The child is an
Icon
within a
Surface
)
z
Have you seen this ?
a
Thanks. I did see that but I forgot about it since I didn't understand the correct parameter for
Copy code
minIntrinsicWidth(height: Int)
In fact, I still don't. The only values I have is the max width and height in the constraint.
z
right, i think that max height is the right value to pass in there
a
Thanks Zach! I love the work you're doing Compose. I'm actually excited about Android development again and want to do it, rather than just want to get paid for it.
👍 1
z
I know what you mean, i had the same feeling when i started working with it!