flavorizer_config 0.0.5 flavorizer_config: ^0.0.5 copied to clipboard
A new flutter utility to easily create flavors in your flutter application.
Getting started #
With null-safety
dependencies:flavorizer_config: ^0.0.5
Add the dependency to your project and start using flavorizer_config #
Importing the package #
import 'package:flavorizer_config/flavorizer_config.dart';
Usage #
To use this plugin, add flavorizer_config as a dependency in your pubspec.yaml file.
Example #
Here are an example that show you how to use this plugin.
main.dart #
FlavorizerConfig
(
appTitle: 'Development',
flavor: Flavors.dev,
variables: {'title':'Development App',
'baseUrl':'https//www.flavor.com','description':'Development Flavor',});
final flavorVariablesModel = FlavorVariablesModel()
..title = 'Development App'
..baseUrl = 'https//www.flavor.com'
..description = 'Development Flavor';
FlavorizerConfig
(
appTitle: 'Development',
flavor: Flavors.dev,
variables: flavorVariablesModel.toJson());
Improve #
Help me by reporting bugs, submit new ideas for features or anything else that you want to share.
- Just write an issue on GitHub. ✏️
- And don't forget to hit the like button for this package ✌️
More #
Check out my other useful packages on pub.dev