chore: update example project

This commit is contained in:
James Collins
2025-08-20 13:30:28 +12:00
parent d9604fab50
commit 0d2d998d0a
9 changed files with 26 additions and 12 deletions

View File

@ -3,9 +3,15 @@ import 'package:flutter/services.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
Future main() async {
await dotenv.load(fileName: "assets/.env", mergeWith: {
'TEST_VAR': '5',
}); // mergeWith optional, you can include Platform.environment for Mobile/Desktop app
await dotenv.load(
fileName: "assets/.env",
// mergeWith optional, you can include Platform.environment for Mobile/Desktop app
mergeWith: {
'TEST_VAR': '5',
},
// overrideWith optional, you can include additional .env files
overrideWith: ["assets/.env.override"],
);
runApp(const MyApp());
}