Member-only story

Flutter State Management Secrets Google Is Hiding

Fred Grott
2 min readSep 8, 2023

In the state solutions page, Google states that state management is difficult to understand. Well is it or is Google being obtuse?

What’s The App Arch, Kenneth?

The best way to highlight this is to show some code, this is right from the class doc of change notifier class;

Notice anything?

Oh come on, we have a field setting a beginning value and some business logic in the same mislabeled CounterModel class. That in fact is a controller!

Google has structured state tools this way:

One also should note that the tools in the easy category are in the Flutter SDK and the tools in the advanced category are outside the flutter SDK in community packages. Also notice that we move from a coupled controller notifier in the easy category to an observer in the advanced category.

--

--

Fred Grott
Fred Grott

Responses (1)