create_flutter_project
Scaffold a new Flutter project with clean architecture, flavors, localization, and Android build configuration. Automates full 11-step setup from a custom template.
Instructions
Scaffold a new Flutter project from the custom clean-architecture template.
Runs the full 11-step setup:
Install/update app_starter_plus
Clone template & rename project
Initialise Git (+ hooks if present)
Install Flutter dependencies
Generate localisations
Update flavorizr.yaml with project name & org
Commit all files before flavorizr
Generate flavors (flavorizr)
Revert main.dart & app.dart (overwritten by flavorizr)
Create config files (dev / uat / prod)
Configure Android build (desugaring, HMS, ProGuard)
Automatically detects fvm; falls back to plain flutter/dart if fvm is not installed. Returns the absolute path to the ready-to-develop project.
NOTE: This tool does NOT ask for confirmation — it runs immediately. Use dry_run=true first if you want to preview the plan before executing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Parent directory to create the project in (default: current working directory) | |
| org | Yes | Organisation identifier in reverse-domain, e.g. mu.mt | |
| name | Yes | Dart/Flutter project name, e.g. telecom_app_enterprise | |
| dry_run | No | If true, report what would happen without executing anything | |
| template | No | Template repo URL (default: https://bitbucket.org/mtinnovation/flutter_clean_template_2025) |