Skip to content

Commit 8cae9e7

Browse files
committed
chore: update readme
1 parent 83bcbd8 commit 8cae9e7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,17 @@ dotenv.get('LOG_LEVEL'); // => "debug"
237237

238238
Override files take precedence over the base file. Register all env files as assets in `pubspec.yaml`.
239239

240+
## Remote configuration
241+
242+
If you want to manage environment configs remotely and load them by config ID at runtime, see the companion package [flutter_dotenv_remote](https://pub.dev/packages/flutter_dotenv_remote). It also supports using the last successful config as a local fallback.
243+
244+
```dart
245+
await dotenv.loadRemote(
246+
configId: 'your-config-id',
247+
useCacheOnFailure: true,
248+
);
249+
```
250+
240251
## Multiple instances
241252

242253
The package exports a pre-created singleton `dotenv` for the common case. You can also create separate instances for different configurations — each instance maintains its own independent state:

0 commit comments

Comments
 (0)