Jetpack Compose · 8 min read · Intermediate
LazyColumn, Keys & Material 3 Layouts
Render smooth 60fps scrolling feeds with `LazyColumn`, `Scaffold`, and stable item keys.
What you'll learn
- Use `LazyColumn` / `LazyRow` instead of scrollable `Column` for dynamic lists
- Provide stable `key` lambdas for fast diffing
- Structure screens with Material 3 `Scaffold`, `TopAppBar`, and `NavigationBar`
Overview
Render smooth 60fps scrolling feeds with LazyColumn, Scaffold, and stable item keys.
Code Example
@Composable
fun TrackList(tracks: List<Track>, onOpen: (String) -> Unit) {
LazyColumn(verticalArrangement = Arrangement.spacedBy(12.dp)) {
items(tracks, key = { it.slug }) { track ->
TrackCard(track.title, track.lessonCount) { onOpen(track.slug) }
}
}
}
Key Takeaways
- Use
LazyColumn/LazyRowinstead of scrollableColumnfor dynamic lists - Provide stable
keylambdas for fast diffing - Structure screens with Material 3
Scaffold,TopAppBar, andNavigationBar
Quick Check
Check Your Understanding
Score: 0 / 1
1. Why should you use `LazyColumn` instead of `Column(Modifier.verticalScroll(...))` for 500 items?
Study Workspace
Finished this lesson?
Your progress is saved locally in your browser, no account needed.