talira

Compare

flutter_dotenvdotenv (Dart)
What it isLoad configuration into a Flutter app from a .env fileLoad environment variables at runtime from a .env file in Dart
KindOpen sourceOpen source
Trust0.420.19
Stars246116
Last commit2026-11-142023-10-18
LicenceMITMIT
PricingFree and open sourceFree and open source
Free tierYesYes
Self-hostable——
Ways to run it——
SOC 2——
HIPAA——
SSO——
API——
Plugins——
MCP server——
CompanyJames Collinsmockturtl
Features
  • load a .env asset or a string at startup
  • typed getters (int, bool, double) with fallbacks
  • variable interpolation with double quotes, none with single quotes
  • override files and programmatic values merged with set precedence
  • merge system environment variables where dart:io is available
  • parses a .env file at runtime
  • optionally merges its values with Platform.environment
  • CLI to create a .env file and add it to .gitignore
  • CLI to print the file's variables or the whole environment
Limitations
  • Values are bundled into the app binary and can be extracted, so it must not hold secrets such as API keys or tokens.