A Flutter configuration example with separate development and production entry points, shared app settings and flavor-specific assets. The application lives in flutter_flavors/.
main_dev.dartandmain_prod.dart: environment entry points.app_config.dart: shared name and theme configuration.pubspec.yaml: common and environment-specific assets.build.gradle: Android product flavors and app names.
With Flutter and the Android SDK configured:
cd flutter_flavors
flutter pub get
flutter run --flavor dev --target lib/main_dev.dart
flutter run --flavor prod --target lib/main_prod.dartThis earlier example retains its original toolchain. Entry points and flavor names have been inspected; execution with current Flutter versions remains unverified. Release signing requires separate local configuration. For a current Flutter application with tests and CI, see Bitácora.