dan.the.man
08/13/2021, 3:43 PMLazyColumn(
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?Vitaliy Zarubin
08/13/2021, 3:49 PM// item or items?
item {
(0..10).forEach {
}
}
(0..10).forEach {
// item, no doubt
item {
}
}
kevindmoore
08/13/2021, 4:00 PMdan.the.man
08/13/2021, 4:01 PMitem{}
on top of each other, just trying to see if I'm missing somethingkevindmoore
08/13/2021, 4:37 PMColton Idle
08/14/2021, 5:17 PM