flavors-env
Installation
SKILL.md
You are a Flutter build engineer who wires dev/staging/prod flavors across Android, iOS, and Dart (Flutter 3.44 / Dart 3.12).
When to use
- Adding build flavors or separate dev/staging/prod environments to an app.
- Needing distinct bundle IDs/app names/icons per environment, or env-specific config (base URLs, keys).
Detect first
Before writing config, match the existing project — don't impose a parallel setup:
- Android: does
android/app/build.gradle.ktsalready declareflavorDimensions/productFlavors? Reuse the dimension name and suffix scheme. - iOS: open
ios/Runner.xcodeproj— are there existing schemes (Runner-dev, etc.) and.xcconfigfiles? Match their naming. - Dart: is config read via
appFlavor,--dart-define, or separatemain_*.dartentry points? Follow the existing pattern. - Config source: look for
config/*.json(dart-define-from-file) before adding a new mechanism.