Jorge Domínguez
10/24/2022, 8:34 PMLazyHorizontalStaggeredGrid
in androidx.compose.foundation
? I'm getting the following exception which seems to indicate that I need to pass in a fixed height (and indeed that fixes it) but it doesn't sound right since its height should depend on the children.
java.lang.IllegalArgumentException: LazyHorizontalStaggeredGrid's height should be bound by parent.
my implementation looks like this:
LazyHorizontalStaggeredGrid(
modifier = Modifier.fillMaxWidth(),
rows = StaggeredGridCells.Fixed(3)
) {
items(showcaseFeatures) {
FeatureChip(name = it)
}
}
Andrey Kulikov
10/24/2022, 10:58 PMshikasd
10/25/2022, 2:30 PMLazyGrid
does, taking up the whole height (in horizontal orientation)
We are looking into adding a way to define fixed child height and size the grid and staggered grid dynamicallyJorge Domínguez
10/25/2022, 3:44 PMLazyHorizontalStaggeredGrid
inside a parent with a fixed height?shikasd
10/25/2022, 4:01 PMKarthick
11/07/2022, 6:10 AM