<h2 dir="auto">Steps to Reproduce</h2>
<ul dir="auto">
<li>Create a Flutter app on Webstorm</li>
<li>Make some modifications to main.dart.</li>
<li>Run the app.<br>
Expected: new changes take effect<br>
Actual: The app goes back to the sample template that was provided on creation</li>
</ul>
<p dir="auto">I've attached a video showcasing the bug<br>
<a href="https://github.com/flutter/flutter/files/1036402/bug.mp4.zip">bug.mp4.zip</a></p>
<p dir="auto">Add infrastructure to check for program elements changed in the last reload and not executed. Use this facility in flutter tools to figure out situations where the user makes changes that will not be reflected after a hot reload and warn users about the need to do a hot restart for the changes to take effect.</p>