ann_flutter_flavor 0.1.7
ann_flutter_flavor: ^0.1.7 copied to clipboard
CLI and runtime API for multi-flavor Flutter apps. Reads annspec.yaml, generates typed Dart flavor classes, and wires Android Gradle and iOS CocoaPods plugins — Firebase, signing, AdMob, RevenueCat included.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate ann_flutter_flavorUse it
The package has the following executables:
$ ann_flutter_flavor
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add ann_flutter_flavorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
ann_flutter_flavor: ^0.1.7Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:ann_flutter_flavor/ann_flutter_flavor.dart';