Member-only story
The Flutter State Management Secret
Matt Carroll is wrong! There is a Flutter State Management Secret that makes understanding Flutter State Management easy to understand and use. And it’s not just understanding the Flutter Widget Tree as Matt Carroll implies in his, “Understanding State Management and why you never will” article:
Let’s Ask A Stupid Question
Let’s ask a stupid question. What was so similar between both Android native(Java and Kotlin) and iOS native(Obj and Swift) that Facebook could create a cross-platform solution re-using it called ReactNative? The answer is both native UI systems have a state lifecycle in their UI implementations in their View implementation.
As you know, several groups at different companies came up with Reactive concepts and all those concepts include using immutable as the core thing and changing the reference pointer for mutability. In ReactJS, the UI component is immutable and its reference pointers that change.
In Flutter, Google added a twist to UI components in adding back in the lifecycle in the form of stateful widgets.