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

  Рет қаралды 12,904

Musawwir Maqsood

Musawwir Maqsood

Жыл бұрын

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.
Run script: gist.github.co...

Пікірлер: 41
@cromuelbarut4903
@cromuelbarut4903 10 ай бұрын
this is the best flutter flavor tutorial so far
@nodttt
@nodttt 6 ай бұрын
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)
@hinrikhelgason425
@hinrikhelgason425 4 ай бұрын
Thank you! This had been bugging me for hours
@WavyWes
@WavyWes 2 ай бұрын
Thank you! Quick question: in "Copy Bundle Resources" I have GoogleService-info.plist in config/dev, config/prod, and in Runner. Should I remove them all?
@user-vs1pt3fj6u
@user-vs1pt3fj6u 11 ай бұрын
Thanks a lot!!!!! This is the best flavors tutorial so far. Love it ❤
@musawwirmaqsood
@musawwirmaqsood 11 ай бұрын
Glad it was helpful!❤
@dinakarmaurya8000
@dinakarmaurya8000 5 ай бұрын
Excellent man plus more you should show by running from android studio vs code and xcode 🎉
@aunghtet3636
@aunghtet3636 3 ай бұрын
Great configuration video, short and efficient
@GadepallySukumar
@GadepallySukumar Ай бұрын
How do we initialise the firebase database ? Without the firebase_options.dart ?
@KameleonKraft
@KameleonKraft 8 ай бұрын
Thank you man, I learnt lots of things here 👏👏👏
@shanattari8042
@shanattari8042 Ай бұрын
Flutter Flavors Setup with multiple Firebase Environments using FlutterFire and CLI
@jadenwatt1977
@jadenwatt1977 7 ай бұрын
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
@CodeCraftAcademy-dd1qd
@CodeCraftAcademy-dd1qd 7 ай бұрын
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?
@codelate
@codelate 7 ай бұрын
I resolved this already. Thanks again!
@motivaet5447
@motivaet5447 4 ай бұрын
@@codelate can you tell me how you resolved it?
@rajvaghasiya469
@rajvaghasiya469 3 ай бұрын
@@codelate can you provide solution?
@SumonPaul-ym7mu
@SumonPaul-ym7mu 3 ай бұрын
Can anyone tell me a way to solve this
@user-ny8hw3iw2s
@user-ny8hw3iw2s 4 ай бұрын
Thank you so much for the tutorial!
@HarshavardhanGurramYT
@HarshavardhanGurramYT 11 ай бұрын
Man! Million thanks!
@jasbirkhalif1314
@jasbirkhalif1314 10 ай бұрын
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.
@ganapathysriramm4309
@ganapathysriramm4309 8 ай бұрын
Got any solution for that?
@Geek-jx3gw
@Geek-jx3gw 2 ай бұрын
build input file cannot be found :( :(((((
@mambafitnesses
@mambafitnesses 9 ай бұрын
This only applies to the Android and iOS or also to Web Flutter development?
@Frank-go5ih
@Frank-go5ih 10 ай бұрын
When i running my app from xcode only the the flavor last builded with vs code will run.
@musawwirmaqsood
@musawwirmaqsood 10 ай бұрын
Have you selected relevant scheme in XCode? For reference go to video at 0:41 sec.
@Frank-go5ih
@Frank-go5ih 10 ай бұрын
@@musawwirmaqsood I found the solution and i realy wonder why nobody talking about this.
@nabilafaraz6579
@nabilafaraz6579 7 ай бұрын
My name is M.Tayyab your video is ok ❤
@mixedentertainment5734
@mixedentertainment5734 8 ай бұрын
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
@thegrapes1281
@thegrapes1281 7 ай бұрын
@sentrycod2373
@sentrycod2373 8 ай бұрын
Do we need different SHA certificates for the different flavours?
@musawwirmaqsood
@musawwirmaqsood 8 ай бұрын
No, we can use the same.
@rawezhali9038
@rawezhali9038 3 ай бұрын
thank u brother
@vicktorManuel
@vicktorManuel 2 ай бұрын
hahaha you need more energy in your words xd but thanks
@manishmg3994
@manishmg3994 6 күн бұрын
keep coding
@harshavardhangurram9067
@harshavardhangurram9067 11 ай бұрын
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.
@ajaykumarpathuri3301
@ajaykumarpathuri3301 11 ай бұрын
shouldn't it be lib/main_dev.dart?
@GadepallySukumar
@GadepallySukumar Ай бұрын
How do we initialise the firebase database ? Without the firebase_options.dart ?
@harshavardhangurram9067
@harshavardhangurram9067 11 ай бұрын
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.
@musawwirmaqsood
@musawwirmaqsood 11 ай бұрын
Open flutter app in XCode, goto project Runner and click on Build Settings and make sure all and combined are selected then search for FLUTTER_TARGET and here you can edit main file path according to your flavor.
Dark Theme in Flutter(light and dark mode)
4:57
Musawwir Maqsood
Рет қаралды 240
Flutter Flavors, App Icons, and Firebase Tutorial
9:39
Marcus Ng
Рет қаралды 51 М.
Это реально работает?!
00:33
БРУНО
Рет қаралды 4,3 МЛН
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 24 МЛН
IQ Level: 10000
00:10
Younes Zarou
Рет қаралды 13 МЛН
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Chapitosiki
Рет қаралды 25 МЛН
KMP vs. Flutter - Who Will Win The Cross-Platform Battle?
16:19
Philipp Lackner
Рет қаралды 41 М.
Flavors in Flutter - Multiple apps from one source code - Icon Generation
28:42
React Native vs Flutter - Which should you use?
22:31
Simon Grimm
Рет қаралды 21 М.
Flutter for iOS developers
13:43
Flutter
Рет қаралды 109 М.
iOS Schemes with Flutter
13:31
Evoqys
Рет қаралды 4,5 М.
Flutter Basics by a REAL Project
25:42
Flutter Guys
Рет қаралды 449 М.
Mastering Push Notifications in Flutter: Firebase Integration Guide
35:36
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,4 МЛН
Environments (Flavors) in Flutter with Codemagic CI/CD
1:02:30
Reso Coder
Рет қаралды 32 М.
No Code App Development is a Trap
9:31
Coding with Dee
Рет қаралды 206 М.
Это реально работает?!
00:33
БРУНО
Рет қаралды 4,3 МЛН