enviroment_flavor

Last updated:

0 purchases

enviroment_flavor Image
enviroment_flavor Images
Add to Cart

Description:

enviroment flavor

enviroment_flavor #
Flutter package to manage simple environment variables.
Getting Started #
In your flutter project, add the dependency to your pubspec.yaml
dependencies:
...
enviroment_flavor: ^2.0.2
copied to clipboard
Usage #
1. Import #
Import enviroment_flavor
import 'package:enviroment_flavor/enviroment_flavor.dart';
copied to clipboard
2. Create instance #
Create instance at main file
EnviromentFlavor.create(enviroment: Enviroments.DEV, baseURL: "google.com");
copied to clipboard
3. Use anywhere #
CustomDio() {
_dio = Dio(
BaseOptions(
baseUrl: EnviromentConfig.instance.baseURL,
),
);
}
copied to clipboard
Contact #
Send e-mail: [email protected]
copied to clipboard
License #
Copyright (c) 2020 ESIG Group
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.