2.5 Lazy Lists
LazyListScope DSL
LazyColumn {
// Adds a single item
item {
Text(text = "First item")
}
// Add 5 items
items(5) { index ->
Text(text = "Item: $index")
}
// Adds another single item
item {
Text(text = "Last item")
}
}Padding
Spacing
Tips for Lazy Lists
Last updated
Was this helpful?