flutter_dotenv
flutter_dotenv copied to clipboard
Loads environment variables from `.env`.
Hello, `$ 🐓 flutter doctor --verbose [✓] Flutter (Channel stable, 2.0.4, on Linux, locale en_US.UTF-8) • Flutter version 2.0.4 at /home/bhuvanesh/Desktop/flutter • Framework revision b1395592de (3 weeks ago), 2021-04-01 14:25:01...
I happened to read the blog post. https://systemweakness.com/why-not-to-use-dotenv-on-flutter-5d3a07abc971 According to this article, the .env file appears to be readable. I'm storing key security information here. Is there a security problem...
Just like many other dotenv libraries, I don't think it's ideal if the build fails if no .env file is found. For instance, we mainly use .env files for different...
I try to load an additional .env when running in a emulator/simulator like so: ```dart dotenv.load(fileName: '.env').then((value) => { SafeDevice.isRealDevice.then((isReal) => { if (!isReal && (Platform.isAndroid || Platform.isIOS)) { dotenv.load(...
``` static Key _key = Key.fromBase64(DataManagement.getEnvData(EnvFileKey.encryptKey) ?? ''); ``` That's how I am importing env file data(encryptKey in this case). It works fine normally but does not import data while...
Whenever using dotenv to get the correct keys for FirebaseOptions, it is impossible to do that because dotenv returns values (or doesn't?) as a constant. Doesn't matter if we use...
I am reading the values from .env file and I am following the example. I would like to have the option to do this: static const String apiUrl = env['base_url'];...
Hi, I used this package and created a .env file and put in .gitignore. Now when I tried to used the codemagic CICD it gives me an error ```no file...
I have a working site using a `.env` file. I added some new environment variables to the `.env` file and deployed, which resulted in a runtime error with `flutter_sentry` as...
I have followed the docs, but still get the error. I am wondering whether it is not available to use it in flutter packages?