'How to use different flutter flavors with Codemagic?

I wonder how to set up different flavors in Codemagic?

enum Environment {
  dev,
  stage,
  prod,
}


Solution 1:[1]

you can find sample project how to build Flutter app with flavors here https://github.com/codemagic-ci-cd/codemagic-sample-projects/tree/main/flutter/flutter-flavors-demo-project

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mikhail Tokarev