java-james / flutter_dotenv

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

feature: Allow overriding with other env files #44

Open e-e opened 2 years ago

e-e commented 2 years ago

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 a "base" env file, and then environment-specific env files which would override a subset of the base env file values.

There were some auto-formatting changes, but I tried to run them against dartfmt and it said there were no changes to be made 🤷

Screen Shot 2021-08-08 at 7 35 16 PM Screen Shot 2021-08-08 at 7 35 19 PM
java-james commented 2 years ago

Thanks for the PR just a note to say aware it's open and will make time to review and see how this aligns with larger .env libraries in regards to usage

e-e commented 2 years ago

Hey @java-james. No pressure on the PR, but just wanted to report back that we are currently successfully using this addition in our app

SAGV commented 1 year ago

This would be so good to have!