easy_flavor 0.1.1
easy_flavor: ^0.1.1 copied to clipboard
A CLI that sets up Flutter flavors (dev, staging, prod, ...) for Android and iOS in new or existing projects, with optional Firebase integration.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate easy_flavorUse it
The package has the following executables:
$ easy_flavor
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add easy_flavorWith Flutter:
$ flutter pub add easy_flavorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
easy_flavor: ^0.1.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:easy_flavor/easy_flavor.dart';