After I updated my Dart extension in VS Code, it doesn't automatically hot-reload my Flutter codes even though I've turned on autosave. Does anyone have an idea about how to solve it?
-
i upgraded it to 3.19.1 – Python Test Jan 31 '21 at 08:26
-
have u found a solution – Abdelrahman Tareq Feb 18 '21 at 13:16
6 Answers
If you using VS Code, Go to the Settings > Extensions > Dart & Flutter
Then select always in Flutter Hot Reload On Save
Congrats Your problem is solved.

- 163
- 1
- 11
Run the flutter doctor
command and make sure that flutter is installed properly on your machine.
Which channel are you running on? Make sure that you run on the stable channel, as long as it does not give you any compile time issues.
If the flutter doctor works, then make sure that, if you are running on iOS (Physical Device), that you have bonjour service enabled. This is required in order to make debugging work on physical devices (for iOS 14+). Please also make sure that you add -v command to the end of your deploy function, to increase the log verbosity. Otherwise you can just deploy to the simulator.
If you are running on Android, there should not be any issues, unless there is a problem with the logcat. In this case you can try to go to android Studio and reboot the ADB (Android Debug Bridge), in which case the machine will try to reattach a debuggable process to your device. If it's still not working, then try another device. If that's not working, then add the -v command, I mentioned earlier, about log verbosity.
Post an update on your issue, once you have tried all of these suggestions.
[EDIT] Please make sure that hot reload is enabled on the vscode settings. Go to Settings > Search > Hot Reload, and make sure it's enabled for both Auto Save & Restart.
Please take a look at this image below:
[EDIT ONCE AGAIN] If you look at the flutter documentation (https://flutter.dev/docs/development/tools/hot-reload) it says, that to run a flutter hot reload, you have to follow these steps:
Run the app from a supported Flutter editor or a terminal window. Either a physical or virtual device can be the target. Only Flutter apps in debug mode can be hot reloaded. Modify one of the Dart files in your project. Most types of code changes can be hot reloaded; for a list of changes that require a hot restart, see Special cases. If you’re working in an IDE/editor that supports Flutter’s IDE tools, select Save All (cmd-s/ctrl-s), or click the hot reload button on the toolbar.
Make sure that you follow all the steps in the documentation, then let's talk on this post again (https://flutter.dev/docs/development/tools/hot-reload)

- 168
- 5
- 12
-
thank you, but I have tried all the suggestion, none of them worked for me, it still does not automatically hot reload my app – Python Test Jan 31 '21 at 08:37
-
-
-
is there possibly something wrong with saving the files? but i already turned on autosave – Python Test Jan 31 '21 at 08:50
-
but my project could hot reload in vscode before updating my dart extension, is there any problem with that? – Python Test Jan 31 '21 at 09:01
-
can you try to rollback to the original version you were using? If you cloned the flutter repo, you can check your version history via git – Dan Gerchcovich Jan 31 '21 at 09:04
Asked and answered over here: Flutter doesn't hot reload on autosave in VSCode. In short, it is working as designed.

- 39,428
- 4
- 43
- 70
The "hot reload on save" feature was intended to run when the user specifically pressed save so they had some control over when it occurred. Some users experienced issues where autosave would cause it to fire when they didn't want it to, so this "bug" was recently fixed.
It turns out that for many users, hot-reload-on-autosave worked fine, so the next version of the Dart extension will include a setting to allow you to re-enable that.
"dart.flutterHotReloadOnSave": "always"

- 40,147
- 24
- 151
- 275
For VS Code Go to 'File' -> 'Auto Save' make sure you have "check" Auto Save.

- 342
- 1
- 6
- 12