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.
Here's the current source on pastebin
children: <Widget>[
new Opacity(
opacity: loader_visible ? 1.0 : 0.0,
child:
new Container(
padding: const EdgeInsets.all(32.0),
child: new CircularProgressIndicator()
)
),
while here is the resulting render tree:
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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…