Is there a way to make LazyVerticalGrid or LazyVer...
# compose
b
Is there a way to make LazyVerticalGrid or LazyVerticalStaggeredGrid with a fixed amount of two columns to have the odd number of elements fill max width? |_ | _ | |____| so if I have two peoples names, it will be one row, but if I add a third, the third person will take up the full width of the 2nd row?
e
can you keep track of index and change the span yourself?
Copy code
LazyVerticalStaggeredGrid(
    columns = Fixed(2),
) {
    itemsIndexed(
        items = items,
        span = { index, _ ->
            if (index + 1 == items.size or 1) FullLine else SingleLane
        },
    ) { _, item ->
🙌 1
b
oh coool!
s
Yeah, that ^^^ You can also do the same in a grid