Hot reload

Tools

Hot reload

How to perform a hot reload

Special cases

An app is killed
Compilation errors
CupertinoTabView’s builder
Enumerated types
Generic types
Native code
Previous state is combined with new code
Recent code change is included but app state is excluded
Recent UI change is excluded

How it works

Flutter’s hot reload feature helps you quickly and
easily experiment, build UIs, add features, and fix bugs.
Hot reload works by injecting updated source code files
into the running Dart Virtual Machine (VM).
After the VM updates classes with the new versions of fields and functions,
the Flutter framework automatically rebuilds the widget tree,
allowing you to quickly view the effects of your changes.

How to perform a hot reload

To hot reload a Flutter app: