Solved: How to clear Flutter's Build cache?
There seems to be a problem with flutter's build.
I always need to perform RUN > Flutter Full Restart everytime I run the app to an emulator or device.
Otherwise, the app loads a scaffold body which my code had from 2 weeks ago when I first started coding it.
children: <Widget>[ new Opacity( opacity: loader_visible ? 1.0 : 0.0, child: new Container( padding: const EdgeInsets.all(32.0), child: new CircularProgressIndicator() ) ),
I'm guessing flutter has cached the old code and never bothered replacing it with the new one, but I am not sure how it's Hot Reload was implemented. Anyways, I don't think that it is necessary to load the old cache when we have already performed a full rebuild.
You can run
But that's most likely a problem with your IDE or similar, as flutter run creates a brand new apk. And hot reload push only modifications.
Try running your app using the command line
flutter run and then press
R for respectively hot-reload and full-reload.