Closed Gourdbaby closed 3 years ago
Is your .env file located in the project root folder and .env added to pubspec.yaml as
flutter:
assets:
-.env
@Gourdbaby Thanks for the issue. Most likely the env file isn't part of the bundle. Did you tru the solution suggested above? Any luck?
@Gourdbaby have tried and cannot reproduce this issue on android - Closing the issue for now due to inactivity and suspect missing config. Please re open if the issue persists after confirming your pubspec config
In my case, I am using flutter_dotenv like this.
I got a error
in the line for
await DotEnv.load(fileName: ".env");
. This is why it?