Someone posted a solution like ```LazyColumn( ...
# compose
d
Someone posted a solution like
Copy code
LazyColumn(
    modifier = Modifier.fillMaxSize(),
) {
    // My Books section
    item {
        Column(modifier = Modifier.fillMaxWidth()) {
            Text("My Books")
            LazyRow {
                items(books) { item ->
                    // Each Item
                }
            }
        }

    }
    // Whishlisted Books title
    item {
        Text("Whishlisted Books", style = MaterialTheme.typography.h4)
    }
    // Turning the list in a list of lists of two elements each
    items(wishlisted.windowed(2, 2, true)) { item ->
        Row {
            // Draw item[0]
            // Draw item[1]
        }
    }
}
to a SO question, but what is the point of multiple
item{}
blocks instead of just having it all in one?
v
Copy code
// item or items?
item {
    (0..10).forEach {

    }
}

(0..10).forEach {
    // item, no doubt
    item {

    }
}
k
Just a guess, but I would think each item is like a row in RecyclerView and treated that way
d
I understand the point of the item vs items, but not sure why they have two
item{}
on top of each other, just trying to see if I'm missing something
k
I think if you just have a few items, it is easier to just list them as item{}. If you have lists, you could use the forEach
c
I don't think it actually matters.