flutter_env_config 1.0.0
flutter_env_config: ^1.0.0 copied to clipboard
A Flutter package to manage environment-specific configurations using a JSON file. Easily load and access different settings based on the target environment (e.g., dev, staging, prod).
Flutter Env Config Manager #
A powerful and flexible environment configuration management package for Flutter projects. This package simplifies managing and switching between multiple environment configurations (e.g., dev, staging, prod) and allows runtime updates, making it ideal for scalable applications.
Features #
- Load environment configurations from JSON or YAML files.
- Dynamic configuration updates at runtime using
ValueNotifier. - Centralized environment management with a singleton pattern.
- Supports CI/CD configurations, API settings, theming, analytics, and more.
- Easy-to-use methods for testing and environment overrides.
Installation #
Add the following line to your pubspec.yaml:
dependencies:
flutter_env_config: <version>
Run
flutter pub get
Usage #
Import the Package
import 'package:flutter_env_config/flutter_env_config.dart';