mamena tech
mamena tech

Reputation: 605

How to disable auto hot reload on flutter?

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

Answers (5)

Ivan Yoed
Ivan Yoed

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:

Image that shows the process

Upvotes: 15

Kavya Shravan
Kavya Shravan

Reputation: 363

  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

Upvotes: 3

jnt
jnt

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

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

Upvotes: 7

Luca
Luca

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

Marcos Maliki
Marcos Maliki

Reputation: 600

Disable auto save on VsCode:

Go to File > Preferences > settings

Choose off from the auto save drop down.

Upvotes: 9

Related Questions