java-james / flutter_dotenv

Loads environment variables from `.env`.
https://pub.dartlang.org/packages/flutter_dotenv
MIT License
209 stars 46 forks source link

Project is looking for .env in assets folder #18

Closed arualana closed 3 years ago

arualana commented 3 years ago

I set up like this

assets:
    - .env

in my pubspec.yamlas specified in https://pub.dev/packages/flutter_dotenv but the project looks for the .env file inside the assets folder

java-james commented 3 years ago

This may have been an issue in previous flutter versions. I cannot reproduce in the latest flutter?

The .env file should be in the root of the project. Please let me know if this is still and issue and I will reopen.