Make a change. Keep your place. The example starts automatically. Click its counter and write a draft, then edit the code and hot reload: your state stays with you.
- ⌘/Ctrl+Enter or ⌘/Ctrl+S
- Run or hot reload
- Ctrl+Space
- Dart completions
- Restart
- Run again with fresh state
Your code is saved in this browser. When you come back, your last edit is restored; press Run to see it. Download it to keep a copy. Reset restores the original example.
Pad code is one file: define Widget buildApp() to return your app, and the Pad supplies the browser entry point. The code runs in your browser, so it imports package:fleury/fleury_core.dart and Fleury’s other bundled packages, not dart:io or the native package:fleury/fleury.dart. To run it in a terminal from a Fleury project, import package:fleury/fleury.dart and add void main() => runApp(buildApp());.
About hot reload