chapter eight
8 Flutter State Management
In this chapter:
- StatefulWidget and State object
- Widget tree vs Element tree
- State object lifecycle
- InheritedWidget
- Intro to Streams and Async Dart
- Bloc state management architecture
This chapter is going to be a ton of fun, for two reasons: First, there isn’t one approach state management (in Flutter or elsewhere). There are many different state management patterns, and all developers have opinions about each of them. And second, developers (including myself) are… passionate… about their opinions.
With that in mind, I won’t be able to do a deep dive on every pattern that’s popular right now. I thought a lot about which patterns I should cover, and I came up with this two-pronged litmus test to decide:
- Will it help you expand your Flutter and Dart skills specifically?
- Is it un-opinionated enough that it’s concepts can be applied elsewhere?