79578139

Date: 2025-04-16 21:29:49
Score: 1
Natty:
Report link

Possibly, since flutter_dotenv 5.0+, it tries to read .env from AssetBundle. This means, the file should be added as asset:

in pubspec.yaml:

flutter:
  assets:
    - .env

Then it means, the file will be included into build! And I am actually trying to prevent exposing my .env.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Dr. Andrey Belkin