π Hot Reload = Caffeine shot β
β»οΈ Hot Restart = Power nap π€
π Hot Reload
- Injects updated code into the running app.
- Keeps your app state alive.
- Best for: UI tweaks, small widget edits.
- Just save the file (Ctrl+S / Cmd+S) or click the lightning icon.
β»οΈ Hot Restart
- Recompiles & restarts the entire app.
- Resets all state.
- Best for:
main()
changes, stuck state issues. - Use the green restart icon or press
r
in terminal duringflutter run
.
β Quick Tip
When in doubt:
- Just changing UI? β Hot Reload
- Changed logic or something feels off? β Hot Restart
π·οΈ Tags
Flutter
HotReload
HotRestart
Dart
MobileDevelopment
FlutterDev
Debugging
Thanks for reading!
π Full blog β Read on Medium
Top comments (0)