title: Flutter Hot Reload and Hot Restart not working
body: <p>I am trying to work on a project that I just started and while editing the app I realized that <strong>neither hot reload nor hot restart are working</strong> even though I have changed the design multiple times. The only time that I would see a change in the screen is when I <strong>uninstall the app and run again</strong>,</p>
  
  <p>I am testing the app on an emulator and I am using Android Studio.</p>
  
  <p>I searched for a solution before typing this question and this is what I have tried:</p>
  
  <ul>
  <li>flutter clean</li>
  <li>flutter doctor -v <strong>then</strong> flutter upgrade</li>
  <li>deleting the emulator and trying on another emulator</li>
  <li>invalidate cache and restart </li>
  </ul>
  
  <p>It used to work really well and now it is not, here's an example:</p>
  
  <pre><code>import 'package:gradient_app_bar/gradient_app_bar.dart';
  
  import '../constants.dart';
  
  class PlantScreen extends StatefulWidget {
    @override
    _PlantScreenState createState() =&gt; _PlantScreenState();
  }
  
  class _PlantScreenState extends State&lt;PlantScreen&gt; {
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: GradientAppBar(
          centerTitle: true,
          title: Text('plant A'),
          gradient: LinearGradient(
              colors: Constants.primaryGradient,
              begin: Alignment.topLeft,
              end: Alignment.bottomRight),
        ),
        body: Container(
          constraints: BoxConstraints.expand(),
          decoration: BoxDecoration(
            gradient: LinearGradient(
                colors: Constants.primaryVariantGradient,
                begin: Alignment.topLeft,
                end: Alignment.bottomRight),
          ),
          child: Column(
            children: &lt;Widget&gt;[
              Card(
                child: Column(
                  children: &lt;Widget&gt;[
  
                  ],
                ),
              ),
            ],
          ),
        ),
      );
    }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/sUPWp.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sUPWp.png" alt="enter image description here"></a></p>