5

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.

mamena tech
  • 496
  • 5
  • 16
  • you might no longer need to disable this manually. see [Flutter hot reload doesn't work on autosave in VSCode](/q/65975713/11107541) – starball Aug 27 '23 at 08:08

5 Answers5

12

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:

Image that shows the process

Iván Yoed
  • 3,878
  • 31
  • 44
8

Disable auto save on VsCode:

Go to File > Preferences > settings

Choose off from the auto save drop down.

Marcos Maliki
  • 510
  • 5
  • 16
6

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

Dart flutter settings: hot reload/restart on save

Then use Run > Restart Debugging to restart manually or Crtl + F5 to Hot Reload

hot reload duebugging bar

jnt
  • 1,133
  • 14
  • 10
2
  1. To disable Auto Save on VS Code

    Go to File > Preferences > settings turn off Auto Save

enter image description here

  1. To disable Hot Reload or Hot Restart on save search setting with auto hot, and disable the setting.

enter image description here

Kavya Shravan
  • 333
  • 3
  • 6
0

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)

Luca
  • 34
  • 3