Flutter Pilot is a Dart CLI for replaying Flutter UI Scenarios and collecting debugging artifacts. A Scenario is a YAML file that describes the UI path to reproduce.
Install the Flutter Pilot CLI:
dart pub global activate flutter_pilotAfter activation, the command is available as:
flutter_pilot --helpFrom the Target App Package, initialize the app-side setup:
flutter_pilot initinit adds the mcp_toolkit runtime dependency when it is missing and prints
the lib/main.dart bootstrap code to add manually when needed.
Check the setup after making any required lib/main.dart change:
flutter_pilot doctorCreate a YAML file such as scenarios/login.yaml:
scenario:
name: login_error
steps:
- label: submit_login
tap:
byText: Log in
byType: button
- label: wait_for_error
waitFor:
byText: Invalid password
- label: capture_error
capture: {}flutter_pilot validate scenarios/login.yamlValidation checks the Scenario file without connecting to a Runtime Target.
From the Target App Package directory:
flutter_pilot test scenarios/login.yamlThe test command launches the Target App Package, waits for a Runtime Target,
executes the Scenario, and writes run artifacts.
When working from this repository instead of an installed package, run the local executable through Dart:
dart run flutter_pilot --help