Closed affansk closed 8 months ago
I think it is up to us how we use it. Eg:
@Envied(path: '.env.dev') abstract class EnvDev { @EnviedField(varName: 'KEY1') static const key1 = _Env.key1; }
@Envied(path: '.env.prd') abstract class EnvPrd { @EnviedField(varName: 'KEY1') static const key1 = _Env.key1; }
// in your app use kReleaseMode to identify the mode then use EnvDev & EnvPrd accordingly. I hope this should work 😇
@shanaka-sync i drop this.. using dart define from file
i have setup exactly as in document , added extra 2 enviornment. i am not geting how will i run other 2 enviornment using command
Using flavors
Can be used with flavors and this setup
Hey struggling with running specific enviornment like dev, staging, production.
i have setup exactly as in document , added extra 2 enviornment. i am not geting how will i run other 2 enviornment using command