- Place the file directly inside lib folder of your flutter app
- Right now only 2 modes(prod and dev are supported), hit run and it should create(if not already created) the folder core for you
- Inside the core folder, you will have your const folder and your flavor folder
- You will have 2 flavor files in it, dev.dart and prod.dart, both will contain the relevant code for running flavor in your flutter app
- your main.dart file's void main() function would have been changed to mainCommon()
- Inside your build gradle you will notice above the buildTypes, flavorDimension and flavor have been specified
- Next to use them, add the dev.dart and prod.dart as an entry point inside android studio's run's edit configuration
- Also mention 'dev' and 'prod' inside flavor arguments while editing configuration
- Eventual support for more flavors as well as further configuration to flavor_config file will get added as well
-
Notifications
You must be signed in to change notification settings - Fork 0
apoorv-wadhwa/flavor_setup
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published