Rihards
09/29/2023, 12:10 PMLazyVerticalGrid
so that I can have two type of column element widths?Rihards
09/29/2023, 12:11 PMRebecca Franks
09/29/2023, 12:47 PMRihards
09/29/2023, 12:56 PMmiguelsesma
09/29/2023, 1:03 PMRihards
09/29/2023, 1:07 PMefemoney
09/29/2023, 1:07 PMRihards
09/29/2023, 1:11 PMYou kind of need to know this 🤔I see that You already edited Your comment, but if I fetch data from the API where size is returned, then I can’t know that, because elements may change any time. This one works.
items(
elements,
span = { element ->
GridItemSpan(
if (element.size == Size.SMALL) 1 else 2
)
}
) { element ->
...
}