State in Jetpack Compose
summary
Builds a small wellness app in Jetpack Compose: a water counter and a LazyColumn of ~30 wellness tasks that can be checked or removed. Uses mutableStateOf with remember (and switches to rememberSaveable to survive rotation), demonstrates state hoisting and unidirectional data flow, and makes the task list observable with toMutableStateList. Shows ViewModel migration so list mutations survive configuration changes. UI updates after button clicks and deletes, Layout Inspector confirms recomposition behavior.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 0:53Overview
- 1:57State
- 4:10Events
- 10:28State Driven UI
- 16:38State Hoisting
- 22:18Wellness Tasks
- 22:54Design
- 26:47Wellness Screen
- 30:03Modify Wellness Screen
- 32:50Modify Wellness Task List
- 35:10Testing
- 38:35ViewModel
- 40:50Remove Method
related talks
11mInvest in Real State: A workshop for State in Compose
42mJetpack Compose: Art of the State
49mBuilding an Android UI using declarative programming in Jetpack Compose
19mUsing Jetpack libraries in Compose
31mDesigning Media Friendly Jetpack Compose Components
38mEssential concepts to know when learning Declarative UI
32mJetpack Compose — Next Gen Kotlin UI Toolkit for Android
16mHow it's made: Jetpack Compose
