Skip to content

azeunkn0wn/flutter_flavor_concept

Repository files navigation

flutter_flavor_concept

Utilizing Flutter flavor feature combined with environmental variables to create two slightly different apps with a single codebase.


Getting Started

Step 1:

Download or clone this repo by using the command below:

git clone https://github.com/azeunkn0wn/flutter_flavor_concept.git

Step 2:

Go to project root and execute the following command in console to get the required dependencies:

flutter pub get 

Step 3:

Create environment directory and .env files.

  • env
    • meetyoda
      • .env.development
      • .env.production
    • myvcmo
      • .env.development
      • .env.production

Refer to the .env.example for the content of each .env files.


Run app with Android

Meetyoda debug mode

flutter run --flavor meetyoda -t lib/main_meetyoda.dart

MeetYoda release mode

flutter run --release --flavor meetyoda -t lib/main_meetyoda.dart

myvcmo debug mode

flutter run --flavor myvcmo -t lib/main_meetyoda.dart

myvcmo release mode

flutter run --release --flavor myvcmo -t lib/main_meetyoda.dart

Screenshots

App Launcher Icon

Alt Text

MeetYoda debug mode

Alt Text

MeetYoda release mode

Alt Text

myvcmo debug mode

Alt Text

myvcmo release mode

Alt Text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published