Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecli_config

Library to read config from CLI args, env vars, and JSON/YAML files

pub.devRemove
flutter_dotenv

Loads configuration variables from .env asset files or strings into Flutter apps.

pub.devRemove
ScoresHealth5089 (best)
Maintenance4797 (best)
Quality96100 (best)
Popularity6593 (best)
Community80 (best)45
Compatibility85100 (best)
UsageDownloads (30 days)11M (best)1M
Likes102.2k (best)
Pub points150 / 160160 / 160 (best)
GitHub stars123246 (best)
MaintenanceLatest release0.2.0, 3 years ago6.0.2, 7 days ago (best)
Major versions in 12 months00
Contributors100+ (best)18
Publishertools.dart.devUnverified
FitPlatformsAll (pure Dart)Android, iOS, Web, Windows, macOS, Linux
WASM-readyNoYes
KindPure DartFlutter widgets
Code generationNoNo
Direct dependencies20 (best)
LicenseBSD-3-CLAUSEMIT
Setup effortLowLow
JudgementStrengths
  • Simple API with clear precedence rules
  • Supports hierarchical keys and list merging
  • Provides both async and sync loading
  • Built-in typed getters (`getInt`, `getDouble`, `getBool`) with optional fallbacks
  • Supports multiple environment layering via `overrideWithFiles` and programmatic overrides via `mergeWith`
  • Handles variable interpolation (`$BASE_URL/v1` and `${BASE_URL}/v1`) natively
Weaknesses
  • No code generation or type safety for config models
  • Limited to CLI, env, and file sources only
  • No built‑in validation or schema support
  • Insecure for confidential secrets since asset files are bundled publicly within client builds
  • Requires `.env` files to be manually registered under the Flutter `assets` section in `pubspec.yaml`
Warnings
  • Quiet but busy
None
cli_config vs flutter_dotenv: which Flutter package should you use? | pubscout