Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeenven

Generate environment variables from a .env file at compile time with optional obfuscation.

pub.devRemove
pubspec_extract

Extracts Dart pubspec.yaml file and generates pubspec.dart at build time

pub.devRemove
ScoresHealth5975 (best)
Maintenance3785 (best)
Quality100100
Popularity1826 (best)
Community64 (best)63
Compatibility100100
UsageDownloads (30 days)6321.5k (best)
Likes1717
Pub points160 / 160160 / 160
GitHub stars—7
MaintenanceLatest release1.3.0, 8 months ago2.2.1, 4 weeks ago (best)
Major versions in 12 months00
Contributors—5
Publishertienisto.comnfet.net
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationYesYes
Direct dependencies1 (best)7
LicenseMITAPACHE-2.0
Setup effortLowLow
JudgementStrengths
  • Generates compile-time environment variables directly from a .env file without verbose configuration.
  • Supports optional obfuscation of sensitive values to prevent easy reverse engineering.
  • Provides built-in support for mocking environment variables during tests.
  • Supports both command-line usage and build_runner integration
  • Highly configurable extraction of specific top-level keys
Weaknesses
  • Subsequent changes may not trigger rebuilds automatically unless build_runner is used in a specific way, and build_runner integration may only work once per change depending on execution.
  • Variables marked with const cannot be overridden via mocking.
  • Requires regeneration when pubspec.yaml changes if not using build_runner
WarningsNoneNone
enven vs pubspec_extract: which Flutter package should you use? | pubscout