https://kotlinlang.org logo
#compose
Title
# compose
c

Christoph Wiesner

07/25/2022, 1:18 PM
Hi, i want to display a composable (some Chrome) behind a
LazyVerticalGrid
and that composable should match the grids height. seems like that’s not possible bc. the Grid is a SubComposeLayout and therefore i cannot use
height(IntrinsicSize.Min)
(i do not want / cannot inline the content into the grid) is there another approach?
a

Albert Chang

07/25/2022, 3:45 PM
You can use a custom layout in which you measure the grid and then measure the other composable with the grid's height.
4 Views