flutter_environment_config 1.0.0 copy "flutter_environment_config: ^1.0.0" to clipboard
flutter_environment_config: ^1.0.0 copied to clipboard

Plugin that exposes environment variables to your Dart code in Flutter as well as to your native code in iOS and Android. Bring some 12 factor love to your Flutter apps.

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.

2.1.0 - 2025-11-02 #

๐ŸŽ‰ Major Features Added #

  • ๐Ÿš€ Type-Safe Code Generation: Automatic generation of type-safe getters with intelligent type inference
  • ๐Ÿ” Recursive File Scanning: Automatically discovers .env files in subdirectories
  • ๐Ÿ“ฆ Multi-Package Support: Seamless integration with complex project structures and monorepos
  • ๐ŸŒ Cross-Platform Generator: Full support for Windows, macOS, and Linux development environments
  • ๐ŸŽจ Enhanced CLI: Beautiful colored terminal output with detailed progress information

๐Ÿ› ๏ธ Generator Features #

  • โœจ Automatic Type Detection: Infers String, bool, int, double types from environment values
  • ๐Ÿ“‚ Smart Project Detection: Automatically finds configuration from sub-packages
  • ๐Ÿ”„ Multiple Dependency Sources: Supports path, git, and hosted package dependencies
  • ๐ŸŽฏ Custom Output Directories: Configurable output locations via pubspec.yaml
  • ๐Ÿ“Š Detailed Reporting: Shows discovered files, generated variables, and output locations

๐ŸŒ Cross-Platform Improvements #

  • ๐Ÿ–ฅ๏ธ Windows Support: Uses %LOCALAPPDATA%\Pub\Cache or %APPDATA%\Pub\Cache
  • ๐ŸŽ macOS Support: Uses ~/.pub-cache with proper HOME detection
  • ๐Ÿง Linux Support: Full compatibility with Linux development environments
  • ๐Ÿ”ง PUB_CACHE Detection: Respects custom PUB_CACHE environment variable

๐Ÿ“ CLI Commands #

  • dart run flutter_environment_config:generate - Generate type-safe code
  • Automatic detection of generator location across all dependency types
  • Intelligent fallback to pub cache when local paths not available

๐ŸŽจ Developer Experience #

  • ๐ŸŒˆ Colored Output: Cyan, blue, yellow, magenta terminal colors for better readability
  • ๐Ÿ“‹ Progress Tracking: Real-time feedback on file discovery and code generation
  • ๐Ÿ” Debug Information: Detailed logging for troubleshooting
  • โœ… Success Indicators: Clear completion messages with file locations

๐Ÿ“š Documentation Updates #

  • ๐Ÿ“– Comprehensive README: Updated with all new features and examples
  • ๐Ÿ› ๏ธ Setup Guides: Enhanced installation and configuration instructions
  • ๐Ÿงช Testing Examples: Updated testing patterns with generated code
  • ๐Ÿ”ง Configuration Reference: Complete pubspec.yaml configuration options

2.0.0 - 2025-10-26 #

Breaking Changes #

  • ๐Ÿ’ฅ PROJECT RENAMED: Changed project name from flutter_environment_config to flutter_environment_config
  • ๐Ÿ’ฅ CLASS RENAMED: Changed class name from FlutterEnvironmentConfig to FlutterEnvironmentConfig
  • ๐Ÿ’ฅ IMPORT UPDATED: Import path changed to package:flutter_environment_config/flutter_environment_config.dart

Added #

  • ๐Ÿš€ Complete rewrite with improved API design
  • ๐Ÿ“ฑ Enhanced native platform support for iOS and Android
  • ๐Ÿงช Better testing utilities with loadValueForTesting
  • ๐Ÿ“š Comprehensive documentation and setup guides
  • โœจ Support for multiple environment files (.env.development, .env.staging, etc.)
  • ๐Ÿ”ง Improved error handling and validation
  • ๐ŸŽฏ Better TypeScript-like null safety support

Changed #

  • ๐Ÿ’ฅ BREAKING: Updated minimum Flutter version to 1.10.0
  • ๐Ÿ’ฅ BREAKING: Updated minimum Dart SDK to 2.12.0 (null safety)
  • ๐Ÿ”„ Refactored core plugin architecture for better performance
  • ๐Ÿ“– Completely rewritten README with better examples
  • ๐ŸŽจ Improved API consistency across platforms

Fixed #

  • ๐Ÿ› Fixed null value handling issues
  • ๐Ÿ”ง Resolved Android build configuration problems
  • ๐Ÿ“ฑ Fixed iOS integration issues
  • โšก Improved plugin initialization performance

Security #

  • ๐Ÿ”’ Added security warnings about sensitive data storage
  • ๐Ÿ“ Enhanced documentation about best practices

1.1.1 2023-XX-XX #

Improvements #

  • โœ… Support for Android SDK version 21+

Resolved Issues #

  • ๐Ÿ› Compatibility issues with older Android versions

1.1.0 2023-XX-XX #

Major Changes #

  • ๐Ÿ”„ Major code refactoring for better maintainability
  • ๐Ÿ“– Improved documentation

Stability Improvements #

  • ๐Ÿ› Various stability improvements

1.0.0 2023-XX-XX #

Critical Fixes #

  • ๐Ÿ› Fixed issue where FlutterEnvironmentConfig.get() returned null values
  • โœ… Improved value retrieval reliability

0.0.2 2023-XX-XX #

Updates #

  • โฌ†๏ธ Updated to Kotlin version 1.7.10
  • ๐Ÿ“ Enhanced documentation

Removed #

  • ๐Ÿ—‘๏ธ Removed deprecated Registrar usage

Configuration #

  • ๐Ÿ”ง Updated build configuration
0
likes
150
points
--
downloads

Publisher

unverified uploader

Weekly Downloads

Plugin that exposes environment variables to your Dart code in Flutter as well as to your native code in iOS and Android. Bring some 12 factor love to your Flutter apps.

Repository (GitHub)
View/report issues

License

BSD-2-Clause (license)

Dependencies

flutter, plugin_platform_interface, yaml

More

Packages that depend on flutter_environment_config

Packages that implement flutter_environment_config