There is not a simple way to know the flavor name, however I would suggest you to use an environment variable, loaded from flutter_dotenv for example . This will allow you (as developer) to easily change the behaviour of your app and switch from different environments seamlessy.
Read moreWhat are activities in flutter?
Activity which displays a fullscreen Flutter UI. FlutterActivity is the simplest and most direct way to integrate Flutter within an Android app.
Read moreWhat is configuration in flutter?
Flutter Global Configuration. A flutter package for managing different configurations by merging them together and making them available everythere inside the app via a singleton .
Read moreHow do I create a config file in flutter?
Create our configs
Read moreWhat is the name of the configuration file in flutter?
Flutter and the pubspec file .
Read moreWhat is configuration in flutter?
Flutter Global Configuration. A flutter package for managing different configurations by merging them together and making them available everythere inside the app via a singleton .
Read more