How to clear Flutter's Build cache? : <p>There seems to be a problem with flutter's build.</p>

<p>I always need to perform <strong>RUN</strong> > <strong>Flutter Full Restart</strong> everytime I run the app to an emulator or device.</p>

<p>Otherwise, the app loads a scaffold body which my code had from 2 weeks ago when I first started coding it.</p>

<p><a href="https://pastebin.com/m62M7TTy" rel="noreferrer">Here's the current source on pastebin</a></p>

<pre><code>children: &lt;Widget&gt;[
          new Opacity(
              opacity: loader_visible ? 1.0 : 0.0,
              child:
              new Container(
                  padding: const EdgeInsets.all(32.0),
                  child: new CircularProgressIndicator()
              )
          ),
</code></pre>

<p>while here is the resulting render tree:
<a href="https://i.stack.imgur.com/aLnrg.png" rel="noreferrer"><img src="https://i.stack.imgur.com/aLnrg.png" alt="while here is the resulting render tree"></a></p>

<p>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.</p>
