Thread
#compose
    Daniel Candeias

    Daniel Candeias

    1 year ago
    How can i center my items inside a
    LazyVerticalGrid
    ?
    LazyVerticalGrid(
        cells = GridCells.Fixed(4)
    ) {
        itemsIndexed(data) { row, dataItem ->
              CustomComposedView(dataItem)
        }
    }
    Expected behavior for 6 elements: x x x x x x
    Ravi

    Ravi

    1 year ago
    what will be the expected behavior for 7 elements?
    Albert Chang

    Albert Chang

    1 year ago
    You can't do this with
    LazyVerticalGrid
    . Consider using
    LazyColumn
    .
    Ravi

    Ravi

    1 year ago
    @Daniel Candeias you can tweak this logic as per your use case