How can i center my items inside a `LazyVerticalGr...
# compose
d
How can i center my items inside a
LazyVerticalGrid
?
Copy code
LazyVerticalGrid(
    cells = GridCells.Fixed(4)
) {
    itemsIndexed(data) { row, dataItem ->
          CustomComposedView(dataItem)
    }
}
Expected behavior for 6 elements: x x x x x x
r
what will be the expected behavior for 7 elements?
a
You can't do this with
LazyVerticalGrid
. Consider using
LazyColumn
.
👍 1
r
@Daniel Candeias you can tweak this logic as per your use case