Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

difference between hot reload and hot restart in flutter

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

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.
 
PREVIOUS NEXT
Tagged: #difference #hot #reload #hot #restart #flutter
ADD COMMENT
Topic
Name
2+4 =