Help Gemini CLI create, build, test, and run Flutter apps.
Use the gemini extensions install terminal command to install directly from the source repository:
gemini extensions install https://github.com/gemini-cli-extensions/flutter.git --auto-update
The --auto-update is optional: if specified, it will update to new versions as they are released.
You can manage the extension with the following commands:
Update to the latest version.
gemini extensions update flutter
Uninstall the extension.
gemini extensions uninstall flutter
Note for Windows users: There is currently a known issue with installing extensions on Gemini CLI for Windows. The workaround is as follows:
Follow instructions above to attempt to install the plugin (this will fail).
gemini extensions install https://github.com/gemini-cli-extensions/flutter.git
In the command line, navigate to the folder in the home user's path where the code was downloaded (USER is the user's username)
cd %TEMP%
Locate the folder for the downloaded extension. It will be the latest titled gemini-extension<hash> where <hash> is a 6 character string. Change into this directory.
cd gemini-extension123456
There should be a zip file in this folder called "win32.flutter.zip". Unpack this file using tar (available in modern Windows versions) or by right-clicking it in File Explorer and selecting "Extract All...".
tar xvf win32.flutter.zip
Use the path flag to gemini installation
gemini extensions install --path %TEMP%\gemini-extension123456
The new commands will be available in new Gemini CLI sessions. The following commands will be available (with or without the flutter: prefix):
/create-app - Guides you through bootstrapping a new Flutter project with best practices./create-package - Guides you through bootstrapping a new Dart package with best practices./modify - Manages a structured modification session with automated planning./commit - Automates pre-commit checks and generates a descriptive commit message.This extension provides powerful commands to automate key phases of the development lifecycle.
/create-appInitiates a guided process to bootstrap a new Flutter application, ensuring your project starts with a solid foundation.
Process:
pubspec.yaml, README.md, and CHANGELOG.md files.DESIGN.md and IMPLEMENTATION.md for your review and approval before any code is written./create-app I want to create a trip planning app
/modifyStarts a structured session to modify existing code. It helps you plan and execute changes safely and efficiently.
Process:
git branch for the modification work, isolating changes.MODIFICATION_DESIGN.md design document detailing the proposed changes.MODIFICATION_IMPLEMENTATION.md plan for your review and approval./modify
/commitPrepares your staged git changes for a clean, high-quality commit. It acts as an automated pre-commit hook and message generator.
Process:
dart fix and dart format to clean and format your code./commit
This extension enforces a specific set of coding standards to ensure consistency and quality. These rules are defined in the extension's repository:
flutter.md: Contains rules and best practices for writing Dart and Flutter code. These rules are opinionated, and we encourage you to review them to ensure they align with your style.You can connect to an app by providing the Flutter extension with the URL for the Dart Tooling Daemon:
Alternatively, you can run from the command line with the --print-dtd flag:
$ flutter run --print-dtd
...
The Dart Tooling Daemon is available at: ws://127.0.0.1:52636/M3G9d1Q3hFk=
To learn more about the Dart and Flutter MCP server, see the Dart and Flutter MCP server page on dart.dev or the dart_mcp_server README.
"Command not recognized": Ensure the extension is installed correctly and you have restarted the Gemini CLI. Verify the installation with gemini extensions list.
"Gemini CLI version error": This extension requires Gemini CLI version 0.4.0 or greater. Check your version with gemini --version and update if necessary.
"[WARN] Skipping extension MCP config for server with key "dart" as it already exists.":
This warning appears if you have manually configured the Dart MCP server in your .gemini/settings.json file.
Since this extension manages the Dart MCP server, you can safely remove your manual configuration to resolve the warning.
If you have feedback, suggestions, or run into issues, please file an issue on GitHub.
Contributions are welcome! Please see our CONTRIBUTING.md guide for more details on how to get started.
Dart
100.0%
Help Gemini CLI create, build, test, and run Flutter apps.
Use the gemini extensions install terminal command to install directly from the source repository:
gemini extensions install https://github.com/gemini-cli-extensions/flutter.git --auto-update
The --auto-update is optional: if specified, it will update to new versions as they are released.
You can manage the extension with the following commands:
Update to the latest version.
gemini extensions update flutter
Uninstall the extension.
gemini extensions uninstall flutter
Note for Windows users: There is currently a known issue with installing extensions on Gemini CLI for Windows. The workaround is as follows:
Follow instructions above to attempt to install the plugin (this will fail).
gemini extensions install https://github.com/gemini-cli-extensions/flutter.git
In the command line, navigate to the folder in the home user's path where the code was downloaded (USER is the user's username)
cd %TEMP%
Locate the folder for the downloaded extension. It will be the latest titled gemini-extension<hash> where <hash> is a 6 character string. Change into this directory.
cd gemini-extension123456
There should be a zip file in this folder called "win32.flutter.zip". Unpack this file using tar (available in modern Windows versions) or by right-clicking it in File Explorer and selecting "Extract All...".
tar xvf win32.flutter.zip
Use the path flag to gemini installation
gemini extensions install --path %TEMP%\gemini-extension123456
The new commands will be available in new Gemini CLI sessions. The following commands will be available (with or without the flutter: prefix):
/create-app - Guides you through bootstrapping a new Flutter project with best practices./create-package - Guides you through bootstrapping a new Dart package with best practices./modify - Manages a structured modification session with automated planning./commit - Automates pre-commit checks and generates a descriptive commit message.This extension provides powerful commands to automate key phases of the development lifecycle.
/create-appInitiates a guided process to bootstrap a new Flutter application, ensuring your project starts with a solid foundation.
Process:
pubspec.yaml, README.md, and CHANGELOG.md files.DESIGN.md and IMPLEMENTATION.md for your review and approval before any code is written./create-app I want to create a trip planning app
/modifyStarts a structured session to modify existing code. It helps you plan and execute changes safely and efficiently.
Process:
git branch for the modification work, isolating changes.MODIFICATION_DESIGN.md design document detailing the proposed changes.MODIFICATION_IMPLEMENTATION.md plan for your review and approval./modify
/commitPrepares your staged git changes for a clean, high-quality commit. It acts as an automated pre-commit hook and message generator.
Process:
dart fix and dart format to clean and format your code./commit
This extension enforces a specific set of coding standards to ensure consistency and quality. These rules are defined in the extension's repository:
flutter.md: Contains rules and best practices for writing Dart and Flutter code. These rules are opinionated, and we encourage you to review them to ensure they align with your style.You can connect to an app by providing the Flutter extension with the URL for the Dart Tooling Daemon:
Alternatively, you can run from the command line with the --print-dtd flag:
$ flutter run --print-dtd
...
The Dart Tooling Daemon is available at: ws://127.0.0.1:52636/M3G9d1Q3hFk=
To learn more about the Dart and Flutter MCP server, see the Dart and Flutter MCP server page on dart.dev or the dart_mcp_server README.
"Command not recognized": Ensure the extension is installed correctly and you have restarted the Gemini CLI. Verify the installation with gemini extensions list.
"Gemini CLI version error": This extension requires Gemini CLI version 0.4.0 or greater. Check your version with gemini --version and update if necessary.
"[WARN] Skipping extension MCP config for server with key "dart" as it already exists.":
This warning appears if you have manually configured the Dart MCP server in your .gemini/settings.json file.
Since this extension manages the Dart MCP server, you can safely remove your manual configuration to resolve the warning.
If you have feedback, suggestions, or run into issues, please file an issue on GitHub.
Contributions are welcome! Please see our CONTRIBUTING.md guide for more details on how to get started.
Dart
100.0%