Skip to content
Guest
Kotlin & Android · Course Syllabus Show lessons
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 / LazyRow instead of scrollable Column for dynamic lists
  • Provide stable key lambdas for fast diffing
  • Structure screens with Material 3 Scaffold, TopAppBar, and NavigationBar

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.

Search courses, lessons, and references

Type to search across all courses, lessons, and quick references.

Press Esc to close Powered by Pagefind