You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reduce mistakes made on the command line, i would suggest to use that flavor string, parse it into the Flavor enum created by the package and throw away the multiple main_flavor.dart files.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently, using a Flavor requires to pass "--flavor MY_FLAV" and "-t lib/my_flav.dart"
in package:flutter/services.dart is an environment variable called "appFlavor"
https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/services/flavor.dart
To reduce mistakes made on the command line, i would suggest to use that flavor string, parse it into the Flavor enum created by the package and throw away the multiple main_flavor.dart files.
Beta Was this translation helpful? Give feedback.
All reactions