flutter_dotenv icon indicating copy to clipboard operation
flutter_dotenv copied to clipboard

Loads environment variables from `.env`.

Results 69 flutter_dotenv issues
Sort by recently updated
recently updated
newest added

I am having a CI/CD pipeline using GitHub actions. The .env file seems not to be picked up correctly there. Everything works fine on my machine when I run the...

I'm working on a flutter project with Module. This package doesn't work correctly here, but if I build a normal project, I don't get this error. `E/flutter (27891): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled...

The ".env" file remains in the "flutter_assets" folder in the release after converting the APK file to a ZIP file and extracting it. ![Screenshot 2023-06-17 at 7 45 32 PM](https://github.com/java-james/flutter_dotenv/assets/17657941/d857d98d-7ac0-46d9-a53f-975aa7b4de5f)

From the docs I can see we can read `env` file in `dart/flutter` side. But I want to know if we can read the same env file in `Ios` and...

How can I use this library to build releases for android and ios? the environment variable does not seem to work after building apk release version

E/flutter (13752): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Instance of 'NotInitializedError' E/flutter (13752): #0 DotEnv.env package:flutter_dotenv/src/dotenv.dart:42 E/flutter (13752): #1 DotEnv.maybeGet package:flutter_dotenv/src/dotenv.dart:58 E/flutter (13752): #2 DotEnv.get package:flutter_dotenv/src/dotenv.dart:53 E/flutter (13752): #3 new ApiKeystore package:user/.env/api_keystore.dart:23 E/flutter...

E/flutter (29283): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: Instance of 'FileNotFoundError' E/flutter (29283): #0 DotEnv._getEntriesFromFile (package:flutter_dotenv/src/dotenv.dart:98:7) E/flutter (29283): E/flutter (29283): #1 DotEnv.load (package:flutter_dotenv/src/dotenv.dart:65:27) E/flutter (29283): E/flutter (29283): #2 main (package:menu/main.dart:12:3) E/flutter (29283): E/flutter...

Hi I would like to know how to exclude .env files for only release build. ex) when I use local build, all of envs are needed for testging. ``` assets:...

We are working on a project where we have to add a google_maps API key inside the Manifest.xml. How can we achieve this using this package?

Is there any solution for failing the build process if something missing?