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

Build-time configuration code generation for Flutter. For non-sensitive values like URLs, feature flags, and API versions. NOT for secrets.

1.0.0 #

Added #

  • Initial Release: Build-time configuration code generation for Flutter
  • @VooConfig Annotation: Class-level annotation for enabling code generation
    • path - Path to config file (default: .env)
    • name - Custom generated class name
    • allowOptionalFields - Allow nullable fields by default
    • useConstantCase - Convert camelCase to CONSTANT_CASE
  • @ConfigField Annotation: Field-level configuration
    • name - Custom config variable name
    • type - Value type (string, int, double, bool)
    • optional - Allow null if missing
    • defaultValue - Default value for optional fields
  • ConfigType Enum: Support for String, int, double, and bool types
  • Multi-Environment Support: Use different config files per environment
  • CI/CD Ready: Works seamlessly with GitHub Actions and other CI systems

Security #

  • No Obfuscation: Removed XOR obfuscation from predecessor package (voo_env)
    • XOR provided false sense of security
    • Values embedded in binary are always extractable
    • For secrets, use voo_secrets package instead

Migration from voo_env #

  • Renamed: @VooEnv@VooConfig
  • Renamed: @EnvField@ConfigField
  • Renamed: EnvTypeConfigType
  • Removed: obfuscate parameter (use voo_secrets for sensitive values)
1
likes
150
points
117
downloads

Publisher

verified publishervoostack.com

Weekly Downloads

Build-time configuration code generation for Flutter. For non-sensitive values like URLs, feature flags, and API versions. NOT for secrets.

Homepage
Repository (GitHub)
View/report issues

Topics

#config #configuration #code-generation #flutter

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on voo_config