Flutter Flavors(android, iOS, firebase) | Create variations of flutter app with same codebase

preview_player
Показать описание
Flavors are used to create variations of mobile app that share the same codebase but have different configurations.

In this video, I'll use flavors to configure 2 different api endpoints and firebase projects for dev and prod environments.

Рекомендации по теме
Комментарии
Автор

this is the best flutter flavor tutorial so far

cromuelbarut
Автор

Thanks for the tutorial! This really saves me a lot of time for setup different env in my flutter project

For ppl who have multiple googleservice-info.plist file in iOS, you may get error "Error (Xcode): Multiple commands produce" pointing to your GoogleService-info.plist. Just remove the GoogleService-info.plist in "Copy Bundle Resources", (as the script provided by author will add the plist file during build time)

nodttt
Автор

Thanks a This is the best flavors tutorial so far. Love it ❤

vsptfju
Автор

Thank you man, I learnt lots of things here 👏👏👏

KameleonKraft
Автор

Great configuration video, short and efficient

aunghtet
Автор

Excellent man plus more you should show by running from android studio vs code and xcode 🎉

dinakarmaurya
Автор

When I run the production build I get an error that module camera_avfoundation is not found. Could I have set something up wrong? I’m only getting it on the production build and not the dev build

jadenwatt
Автор

This only applies to the Android and iOS or also to Web Flutter development?

mambafitnesses
Автор

How do we initialise the firebase database ? Without the firebase_options.dart ?

GadepallySukumar
Автор

how did you connect the projects with firebase as separate bundle ids ? by running flutterfire configure, firebase picks the default prod bundle id for my case. whichever flavor i run with the build command, it takes only one bundle id. note that i have registered my bundle id in xcode correctly.

jasbirkhalif
Автор

Flutter Flavors Setup with multiple Firebase Environments using FlutterFire and CLI

shanattari
Автор

When i running my app from xcode only the the flavor last builded with vs code will run.

Frank-goih
Автор

Do we need different SHA certificates for the different flavours?

sentrycod
Автор

Sir Kia app mjhy seekha sakty flutter plz mein disable person hon..agr app Ka koi course ho Kuch bhi jis sy mein flutter seekh sakon plzzz reply me

mixedentertainment
Автор

Thanks so much for this video. The best so far. Please I have an error. Everything works fine until I added the run script and not sure why that throws an error of a build failure. The error is
Command PhaseScriptExecution failed with a nonzero exit code. Any Idea how to resolve this?

CodeCraftAcademy-ddqd
Автор

My name is M.Tayyab your video is ok ❤

nabilafaraz
Автор

hahaha you need more energy in your words xd but thanks

vicktorManuel
Автор

I get an error while running the project from xcode. It shows: "No file found: lib/main.dart"

I tried adding "-t main_dev.dart" to the arguments in the schema, still I can't be able to build from xcode.

harshavardhangurram
Автор

How do we initialise the firebase database ? Without the firebase_options.dart ?

GadepallySukumar
Автор

I get an error while running the project from xcode. It shows: "No file found: lib/main.dart"

I tried adding "-t main_dev.dart" to the arguments in the schema, still I can't be able to build from xcode.

harshavardhangurram