MyApp As A Stateful Widget Is An Antipattern
3 min readJul 31, 2021
Let me show you why having MyApp as a stateful widget is an antipattern.
Background
In the Flutter Framework, the Flutter Team implements the Stateful Widget as a practical immutable by having the Framework re-build the widget when dependencies update or change. That costs memory and time. In state management, we strive to reduce or eliminate Stateful…