So imagine I have an app (standard material scaffold) with a drawer, app bar, body etc.
I'm now thinking what is the correct way to implement it, given I essentially don't want any state in the widgets (i.e. I want to keep state (data) in dedicated model/store/controller classes and keep widgets only responsible for UI/pixels).
I could make the top-level, root app widget stateful and then setState((){})
(note the dummy callback, which I'd use just to trigger the rebuild) whenever the controller(s) tell me to. The child widgets would then get rebuilt and would read the values they're interested in from the stores/models/...
I could make the top-level widget stateless and only mark the leafs as stateful.
Given Flutter claims to be optimized for frequent Widget
rebuilds, is one option significantly better than the other? I'd bet the leaf approach might be more performant, but it's much more verbose (2x the classes).