flutter_dotenv
flutter_dotenv copied to clipboard
Loads environment variables from `.env`.
# Issue When using the Firebase hosting. Failed to read variables from .env file. I thought it was solved in https://github.com/java-james/flutter_dotenv/issues/28#issuecomment-845602009 issue by @java-james , but there is still a...
I think we can provide a little more clarity on loading env files from a string by changing the name of this method so it's clear that this is useful...
Instead of managing multiple env files with duplicate data, this adds a way to provide additional env files to use as overrides. The idea here being that there would be...
Allows to get the variable values casted to the specific type. If the variable does not exist, the `fallback` is used. However, when also no `fallback` is provided, an `AssertionError`...
This is maybe a stupid question, but I don't understand how it works for a very typical use case. We have BASE_URL parameter, which I can set in the `.env`...
Hi, thanks for this package. I'm using it in a web project, but I noticed that the .env file is available via inspector, I think because it's in assets, is...
This line work working before upgrading to Flutter 3.7: `await dotenv.load();` But now, this is generating this error: `FormatException (FormatException: Invalid UTF-8 byte (at offset 0))` the content of my...
This feature makes it possible to load an environment file from another package. Made using the same existing structure in TextStyle & IconData
``` 2022-05-19 21:10:06.868 6663-6703/? E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Instance of 'FileNotFoundError' #0 DotEnv._getEntriesFromFile (package:flutter_dotenv/src/dotenv.dart:98:7) #1 DotEnv.load (package:flutter_dotenv/src/dotenv.dart:65:27) #2 loadEnv (package:meetu_module/main.dart:118:5) #3 main (package:meetu_module/main.dart:52:3) ```
Do I need some additional step for using this package on web? I'm running it on Android/IOS and all goes fine. But when I try to run the project on...