mirror of
https://github.com/flutter/agent-plugins.git
synced 2026-09-14 16:19:33 +08:00
1.3 KiB
1.3 KiB
description, trigger, globs
| description | trigger | globs |
|---|---|---|
| Proactively connect to running Dart/Flutter apps and trigger hot reload or hot restart using the flutter-app-runtime skill workflows upon editing .dart files. | glob | **/*.dart |
Proactive Flutter Hot Reload Rule
Whenever you edit or modify any .dart file in this project, adhere to the runtime management procedures in the flutter-app-runtime skill:
-
Refer to Skill:
- Activate and follow the
flutter-app-runtimeskill workflows for Dart Tooling Daemon (dtd), hot reloading, hot restarting, and runtime error inspection.
- Activate and follow the
-
Discover & Connect:
- Discover active running application instances using the
dtdtool (orlist_running_apps/vm_service).
- Discover active running application instances using the
-
Trigger Hot Reload / Hot Restart:
- Execute
hot_reloadimmediately after making changes to UI widgets or simple methods. - Execute
hot_restartif fundamental logic, stateful widgets or logic affecting variables that stateful widgets use, state initialization, ormain()was modified.
- Execute
-
Verify Runtime Stability:
- Run
get_runtime_errorsviadart-mcp-serverto confirm that the hot reload/restart did not introduce new exceptions.
- Run
-
Fallback Handling:
- If no running app instance is connected via DTD, briefly inform the user, but do not let it stop you from completing the code edits.