9

What is the difference between hot reload, hot restart, and full restart in Flutter and does web support them too?

1 Answer 1

20

Hot Reload:

  • Hot reload loads code changes into the VM and re-builds the widget tree, preserving the app state; it doesn’t rerun main() or initState().

    For IntelliJ or Android Studio: cmd + \

    For VSCode: ctrl + F5

Hot Restart:

  • Hot restart loads code changes into the VM, and restarts the Flutter app, losing the app state.

    For IntelliJ or Android Studio: shift + cmd + \

    For VSCode: shift + ctrl + F5

Full Restart:

  • Full restart restarts the iOS, Android, or web app. This takes longer because it also recompiles the Java / Kotlin / ObjC / Swift code. On the web, it also restarts the Dart Development Compiler. There is no specific keyboard shortcut for this; you need to stop and start the run configuration.

Flutter web currently supports hot restart but not hot reload.

1
  • 1
    1 upvote is not enough for this answer.
    – hardik9850
    May 11 at 6:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.