Reputation: 28886
What is the difference between hot reload, hot restart, and full restart in Flutter and does web support them too?
Upvotes: 8
Views: 6649
Reputation: 28886
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 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
Flutter web currently supports hot restart but not hot reload.
Upvotes: 23