Closed 10ndavis closed 4 years ago
you made the exact change I wanted to make.
👍 this warning also shows on iOS, at all times, test, debug, production.
Thanks for the PR! I will review this shortly.
Thank you for the PR. I will so a release to pub with the change too.
You bet!
Released as 2.0.3 🚀 Cheers!
great...
Shell: [flutter_dotenv] No env values found. Make sure you have called DotEnv.load()
I believe this is because when doing env.addAll(psr.parse(lines)); inside the load method in dotenv.dart, it is using env as a getter, which is originally empty, as it is not yet set. Then, it is setting the value using the setter.
After the change, the message no longer shows and the env is still returned as expected.
This is how I am using flutter_dotenv in the test to replicate.