~/talk

State in Jetpack Compose

Talkat Google I/O 2022 · 2022-05-11..05-12· [android, frontend-architecture]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 0:53Overview
  3. 1:57State
  4. 4:10Events
  5. 10:28State Driven UI
  6. 16:38State Hoisting
  7. 22:18Wellness Tasks
  8. 22:54Design
  9. 26:47Wellness Screen
  10. 30:03Modify Wellness Screen
  11. 32:50Modify Wellness Task List
  12. 35:10Testing
  13. 38:35ViewModel
  14. 40:50Remove Method
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.