Yes, of course you can make MyApp a stateful widget. However sometimes that would not be efficient. For example, say you have a int counter = 0;
in the state of MyApp. Then when you change counter, you call setState(() {counter++;});
But then the whole MyApp will get rebuild! That takes some time if you app is complex.
Thus, I suggest some more automatic library, such as MobX
(https://github.com/mobxjs/mobx.dart). Personally I used it to write a simple project about 30k lines of flutter code and it works pretty well.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…