FLUTTER ECOSYSTEM

envied

Explicitly reads environment variables into a dart file from a .env file for more security and faster start up times.

Latest version
1.3.5
30-day downloads
221.9K
Likes
929
Pub points
160

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

Envied is a Dart package that securely loads environment variables from a .env file directly into Dart code at compile time. By parsing the .env file during build, it enhances security by avoiding runtime access to sensitive data and improves startup performance. It supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, making it ideal for cross-platform applications. The package integrates seamlessly with Flutter projects via a simple pub add command.

Use cases
  • Securely managing API keys in apps
  • Reducing runtime overhead for config loading
  • Enabling environment-specific configurations
  • Simplifying CI/CD pipeline setup
  • Supporting local development with different settings
Key features
  • Compile-time environment variable injection
  • No runtime file I/O for env vars
  • Strong type safety
  • Minimal boilerplate
  • Cross-platform support
  • Easy integration with Flutter
Suitable for
  • Flutter developers needing secure config management
  • Teams using multiple environments
  • Projects requiring fast startup times
  • Apps handling sensitive credentials
  • Developers prioritizing build-time safety
Considerations
  • Requires build step to update variables
  • Environment files must be committed carefully
  • Not suitable for dynamic runtime changes
  • Limited to static configuration
  • Must follow strict .env file format
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add envied

Categories

Source repository

Related projects

Rankings