Search packages, repositories and app categories

Package detailsv1.3.10

envied

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

AndroidiOSWebmacOSWindowsLinux
30-day downloads
322K
Likes
956
Pub points
160

Install package

flutter pub add envied

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

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

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

packages/envied/README.md

Categories

Source repository

Projects using this package

Rankings