Reputation: 605
I have search for this issue and seen solutions, but I am not able to figure out the issue. i get some error because every time write the code, its directly run hot reloads before i finish complete the code. so, how to disable automatic hot reloads in flutter? automatic hot reloads in flutter is so annoying, i just want to use hot reloads base on Ctrl + S. how i do that? i'am using visual studio code by the way.
Upvotes: 7
Views: 7429
Reputation: 4405
If you are using Android Studio 4.1 go to:
On Mac: Android Studio -> Preferences -> Languages & Frameworks -> Flutter
On Windows: File -> Settings -> Languages & Frameworks -> Flutter
Then, after being at Flutter section, look for "App Execution" and there you have to uncheck the box "Perform hot reload on save". Then click OK and that's it.
Here is how:
Upvotes: 15
Reputation: 363
To disable Auto Save on VS Code
Go to File > Preferences > settings turn off Auto Save
Upvotes: 3
Reputation: 1290
In VS Code, alternative to turning off auto-save:
Turn off these settings:
Settings > Extensions > Dart & Flutter > Flutter Hot Reload On Save
Settings > Extensions > Dart & Flutter > Flutter Hot Restart On Save
Then use Run > Restart Debugging to restart manually or Crtl + F5 to Hot Reload
Upvotes: 7
Reputation: 44
If you are using Intellij IDEA (or Android Studio) you might as well disable Hot UI if enabled:
File > Preferences > Languages & Frameworks > Flutter > Enable Hot UI (disable it)
Upvotes: 0
Reputation: 600
Disable auto save on VsCode:
Go to File > Preferences > settings
Choose off from the auto save drop down.
Upvotes: 9