Say you want to make both free and paid versions of your Flutter app. 
You can use flavors to set up both app versions 
without writing two separate apps. 
For example, the free version of the app has basic functionality and ads. 
In contrast, the paid version has basic app functionality, extra features, 
different styles for paid users, and no ads.

You also might use flavors for feature development. 
If you’ve built a new feature and want to try it out, 
you could set up a flavor to test it out. 
Your production code remains unaffected 
until you’re ready to deploy your new feature.

Flavors let you define compile-time configurations 
and set parameters that are read at runtime to customize
your app’s behavior.

This document guides you through setting up Flutter flavors for iOS and Android.

Environment set up

Prerequisites:

Xcode installed

An existing Flutter project