FLUTTER ECOSYSTEM

flutter_flavor

We can create different flavors, and thus have different instances of our apps before publishing it on the App Store and Google Play.

flutter_flavor cover
Latest version
3.1.4
30-day downloads
26.9K
Likes
475
Pub points
160

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

flutter_flavor is a developer tool that enables the creation of different app flavors, allowing distinct configurations and builds for various environments—such as development, staging, and production—before publishing to app stores. It simplifies managing environment-specific settings like API endpoints, logging levels, and branding without duplicating code. The package integrates seamlessly with Flutter’s build system across all supported platforms, including Android, iOS, Web, macOS, Windows, and Linux. It helps teams maintain clean, configurable workflows for testing and deployment.

Use cases
  • Managing multiple environments
  • Customizing build configurations
  • Testing before release
  • Separating dev/staging/prod settings
  • Streamlining CI/CD pipelines
Key features
  • Environment-specific configuration
  • Cross-platform support
  • Easy integration with Flutter
  • Build-time flavor differentiation
  • Minimal boilerplate
Suitable for
  • Development teams
  • CI/CD workflows
  • Multi-environment apps
  • App customization per release
  • Teams using different deployment stages
Considerations
  • Requires setup in build scripts
  • Flavor names must be consistent across platforms
  • Limited runtime switching
  • Not intended for user-facing flavor selection
  • Needs coordination between team members
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add flutter_flavor

Categories

Source repository

Related projects