From d4a27e1ed41477db59b1fe10497afc5736dbe884 Mon Sep 17 00:00:00 2001 From: Abraham Cuenca <1010661+abrahamcuenca@users.noreply.github.com> Date: Mon, 27 Jan 2020 16:43:24 -0800 Subject: [PATCH] Update README.md Add examples using the `assets/.env` path --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cc49482..ff56540 100644 --- a/README.md +++ b/README.md @@ -28,14 +28,14 @@ Add the `.env` file to your assets bundle in `pubspec.yaml` Add the `.env` file as an entry in your `.gitignore` if it isn't already ```sh -.env* +assets/.env* ``` Init the DotEnv singleton in `main.dart` ```dart Future main() async { - await DotEnv().load('.env'); + await DotEnv().load('assets/.env'); //...runapp } ```