I have this weird requirement where I have to give a Box the same height that is equal to the total height of the 1st and 2nd item of a LazyCol on top of the box.. The 1st and 2nd item in the list can change at any time or else I would just try to take the easy route and use some hardcoded height. How can I properly set a variable of
totalHeightOfFirstAndSecondItemInLazyCol
.
Copy code
Box {
Box(fillMaxWidth().height(totalHeightOfFirstAndSecondItemInLazyCol)
LazyColumn() { //all items are different sizes }
}