flutter_env_gen 1.0.4 copy "flutter_env_gen: ^1.0.4" to clipboard
flutter_env_gen: ^1.0.4 copied to clipboard

Type-safe environment configuration generator for Flutter. Generate strongly-typed Dart code from .env files with automatic type detection and compile-time constants.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.4 - 2025-11-11 #

Removed #

  • Removed unused analyzer dependency to reduce package size and dependencies

Improved #

  • Cleaner dependency tree with only essential packages

1.0.3 - 2025-11-11 #

Added #

  • Comprehensive unit tests for EnvParser class covering all parsing scenarios
  • Comprehensive unit tests for CodeGenerator class covering all code generation features
  • Enhanced test coverage for EnvGen and EnvField annotations
  • Test cases for all field rename strategies (snakeToCamel, snakeToPascal, kebabToCamel, none)
  • Test cases for sensitive keys handling
  • Test cases for all data types (string, int, double, bool, list)
  • Test cases for multiline values and quoted values
  • Test coverage script for easy coverage reporting

Fixed #

  • Added missing import statements in code_generator.dart (code_builder, dart_style)
  • Added missing import statement in env_parser.dart (dart:io)
  • Fixed operator precedence in env_parser.dart for better code quality

Improved #

  • Achieved >90% code coverage across the codebase
  • Enhanced test documentation and organization
  • Better error handling test coverage

1.0.2 Previous Release #

Features #

  • Type-safe environment configuration generation
  • Support for multiple environment files
  • Automatic type detection (string, int, double, bool, list)
  • Field naming conventions (snake_case, camelCase, PascalCase, kebab-case)
  • Sensitive keys obfuscation support
  • Required keys validation
  • Custom class name configuration

1.0.1 Initial Release #

Added #

  • Initial release of flutter_env_gen
  • Basic .env file parsing
  • Code generation with build_runner
  • Support for compile-time constants
1
likes
150
points
126
downloads

Publisher

unverified uploader

Weekly Downloads

Type-safe environment configuration generator for Flutter. Generate strongly-typed Dart code from .env files with automatic type detection and compile-time constants.

Repository (GitHub)
View/report issues

Topics

#environment #configuration #code-generation #build-runner #env

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

build, code_builder, collection, dart_style, glob, path, source_gen, yaml

More

Packages that depend on flutter_env_gen