Hello all, having problems trying to set the height of a Row to the full height based on its childrens height. If you can take a peek, thanks in advance. Code in comments
However I am not seeing the Box with the black background. This is in a bottom sheet and if I set the height to fillMaxHeight() the height is much taller than the content.
Not sure why
Copy code
.height(IntrinsicSize.Min)
is not working
l
Landry Norris
08/09/2022, 6:22 PM
What happens if you use IntrinsicSize.Max? The min size should be 0 for the box, right?
InstristicSize.Max does not seem to make a difference.
And the problem with using fillMaxHeight on the Box is that the max height of the parent (since it is a bottom sheet) is much bigger than the size of the content the children take up.
Billy Newman
08/09/2022, 8:39 PM
Fairly certain my issue form checking the docs is that the IntrinsicSize.Min needs to be on the top level Row, since that contains the children with dynamic height. However when doing that I get the following error message:
Asking for intrinsic measurements of SubcomposeLayout layouts is not supported.
t
Tin Tran
08/10/2022, 4:21 AM
Currently this is not supported. You need to write your custom layout to measure the children and set the parent height accordingly