Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeflutter_config

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

pub.devRemove
flutter_env_native

Makes --dart-define and --dart-define-from-file variables available to native Android and iOS platforms.

pub.devRemove
ScoresHealth5051 (best)
Maintenance09 (best)
Quality9196 (best)
Popularity51 (best)50
Community80 (best)52
Compatibility7373
UsageDownloads (30 days)2.4k6.5k (best)
Likes211 (best)37
Pub points140 / 160150 / 160 (best)
GitHub stars149 (best)13
MaintenanceLatest release2.0.2, 3 years ago0.2.0, a year ago (best)
Major versions in 12 months00
Contributors13 (best)3
Publisherbyneapp.commastersam.tech
FitPlatformsAndroid, iOSAndroid, iOS
WASM-readyYesYes
KindPlugin (native code)Plugin (native code)
Code generationNoNo
Direct dependencies00
LicenseBSD-2-CLAUSEMIT
Setup effortLowMedium
JudgementStrengths
  • Very small API, easy to use
  • Works on both Dart and native platforms
  • Supports testing by injecting values
  • Bridges Dart compile-time variables with native Android and iOS configurations.
  • Supports --dart-define and --dart-define-from-file workflows.
Weaknesses
  • Secrets are not protected – must not store sensitive data
  • Only reads .env files; no runtime updates
  • Requires manual configuration and modifications to native project files (build.gradle, Podfile, AndroidManifest.xml, Info.plist).
  • iOS xcconfig has limitations with certain characters like '//'.
Warnings
  • Native setup
  • Native setup
flutter_config vs flutter_env_native: which Flutter package should you use? | pubscout