State Management Patterns and Their Implementations
There are two notions in state management that are often confused but are quite different: patterns and tools. While a lot of developers argue about the tools, the real thing that you should consider is the pattern, and you should select your tools based on the pattern that suits you the best.
But what do we mean when we say tools or patterns?
Patterns are like guidelines or instructions on how to solve common problems. They’re generally independent of the frameworks and programming languages and operate at a higher level of abstraction. Meanwhile, tools are specific and often opinionated implementations of the patterns. For example, MVI is a pattern, but the flutter_bloc
library is a tool that implements it.
In the previous chapter, we learned about the importance of proper state management for building Flutter apps. We created a solution by using only the tooling available in the Flutter SDK. We did that based on...