Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedotenv

Load environment variables at runtime from a .env file.

pub.devRemove
flutter_config

Loads .env files and exposes variables to Dart, iOS and Android code.

pub.devRemove
ScoresHealth5050
Maintenance1 (best)0
Quality8991 (best)
Popularity80 (best)51
Community6980 (best)
Compatibility85 (best)73
UsageDownloads (30 days)161k (best)2.4k
Likes154211 (best)
Pub points135 / 160140 / 160 (best)
GitHub stars116149 (best)
MaintenanceLatest release4.2.0, 3 years ago (best)2.0.2, 3 years ago
Major versions in 12 months00
Contributors613 (best)
Publisherpracticalflutter.combyneapp.com
FitPlatformsAll (pure Dart)Android, iOS
WASM-readyNoYes
KindPure DartPlugin (native code)
Code generationNoNo
Direct dependencies20 (best)
LicenseMITBSD-2-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Easy to configure with support for multiple file paths and variable substitution.
  • Includes a command-line interface helper to initialize and test .env files.
  • Very small API, easy to use
  • Works on both Dart and native platforms
  • Supports testing by injecting values
Weaknesses
  • Does not expose the underlying map directly since version 4.0.0, requiring forwarding methods.
  • Does not inject variables at compile time.
  • Secrets are not protected – must not store sensitive data
  • Only reads .env files; no runtime updates
WarningsNone
  • Native setup
dotenv vs flutter_config: which Flutter package should you use? | pubscout