FLUTTER ECOSYSTEM

envied_generator

Generator for the Envied package. See https://pub.dev/packages/envied.

Latest version
1.3.5
30-day downloads
180.7K
Likes
40
Pub points
160

Package Overview

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

Overview

Envied Generator is a build-time code generator for the Envied package, enabling safe and type-safe environment variable management in Flutter applications. It generates Dart code from environment configuration files, reducing runtime errors by validating and typing environment variables at compile time. This enhances developer experience with auto-completion and refactoring support. The generator integrates seamlessly into Flutter projects via the pub.dev package ecosystem.

Use cases
  • Type-safe environment variable access
  • Compile-time validation of env vars
  • Automated code generation for config
  • Improved IDE support with autocompletion
  • Secure handling of sensitive data
  • Reducing runtime configuration errors
Key features
  • Compile-time safety
  • Auto-generated Dart classes
  • Integration with Envied package
  • Supports multiple platforms
  • Minimal boilerplate
  • Real-time IDE feedback
Suitable for
  • Flutter apps requiring environment variables
  • Teams prioritizing code safety
  • Projects with strict configuration requirements
  • Developers using CI/CD pipelines
  • Apps handling secrets or API keys
Considerations
  • Requires build_runner setup
  • Needs correct .env file structure
  • Limited to static environment values
  • Not suitable for dynamic config at runtime
  • Dependent on Envied package
  • May increase build time slightly
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add envied_generator

Categories

Source repository

Related projects