State management in flutter using Mobx
summary
Shows concrete use of MobX with Flutter: uses mobx and mobx_codegen plus build_runner, generates .g.dart stores and reduces boilerplate, and uses Provider to inject a theme store and a counter store. Demonstrates a running counter app and a global theme switch that uses an Observer widget* so only the observed subtree rebuilds. Uses autoRun reactions and actions, disposes reactions, and the live demo compiles and updates UI as expected.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker intro
- 1:09What is state in Flutter
- 4:40State management challenges
- 6:26Introducing MobX
- 8:51MobX core concepts
- 10:53MobX code generation
- 13:01Computed observables
- 14:03Actions in MobX
- 15:51Reactions in MobX
- 17:14Live coding setup
- 20:24Theme management demo
- 29:45Live coding wrap-up
- 30:27Q&A and resources
related talks
44mState Management in Flutter
37mApplication state management
45mArchitectural Thinking on Flutter State Management
41mThe Battle of State Management in modern frontend applications
14mState management without pain
33mPragmatic State Management in Flutter
43mYou don’t know MobX State Tree
09mMobX - Performance and Sanity
