~/talk

How to manage application states using inherited widgets

Talkat Google I/O 2021 · 2021-05-18..05-20· [flutter, frontend-architecture]
links:none on file
slides:none on file

Claims a lightweight state system built with InheritedWidget and a small wrapper that owns state and exposes AppStateScope APIs. Uses a sample Flutter Web app, implements a data class with copyWith, and three migrations—ShoppingCartIcon, ProductListWidgets, and the search box—so updates flow through setProductList and addToCart/removeFromCart. The result is a centralized app state that updates the cart badge and product list live and the demo works as shown.

AI-written summary · about

  1. 0:00Start
  2. 7:00Staple Widgets
  3. 8:19Product List Widgets
  4. 10:25Create a Constructor
  5. 16:15Updation Notified Methods
  6. 18:23Depend on Inherited Widgets of Exact Type
  7. 27:18State Management System
  8. 28:30Migrating the Stable Widgets To Use Absolute Widgets
  9. 29:29To Convert Shopping Cart Icon to a Stateless Widgets
  10. 32:02Toggle Search
~/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.