Flutter Flavors, App Icons, and Firebase Tutorial

  Рет қаралды 49,776

Marcus Ng

Marcus Ng

Күн бұрын

» Flutter courses, writeups, and source code on Launch Club 🧠
drp.li/Iq9Bk
» Flutter Job Board 👋
drp.li/T9bLq
When developing apps, it’s very important to separate out your development and production environments. App flavors allow us to create multiple versions of our app with the same codebase, making it easy to create and test new features without the risk of destroying production data. You'll also learn how to generate an app icon for each flavor using the flutter_launcher_icons package and link each flavor to a different Firebase project.
» Resources 📂
Package Info Plus: pub.dev/packages/package_info...
Flutter Launcher Icons: pub.dev/packages/flutter_laun...
Flutter Flavors & Firebase Medium Article: / build-flavors-in-flutt...
Build Phase Runner Script: gist.github.com/animeshjain/b...
» Remember to like, subscribe, comment, and share this video!🚨
kzbin.info?sub_...
» Socials📱
GitHub: github.com/MarcusNg
Twitter: / marcuslng
» Timestamps 🕒
0:00 Flutter Flavors Intro
0:53 app.dart and main files
2:00 .vscode/launch.json
2:48 Android Product Flavors
3:35 iOS Xcode Schemes
5:20 App Icons with flutter_launcher_icons
6:50 App Icons - iOS Setup
7:12 Flavors work!
7:25 Firebase Setup
7:51 Flutter Firebase Flavors - Android
8:18 Flutter Firebase Flavors - iOS
9:07 Thanks for watching!
» Affiliates 🔥
3D Mockups - LaunchClub.io/rotato
» Music 🎶
Joakim Karud ( / joakimkarud )
#Flutter #MobileDevelopment #AppIcons

Пікірлер: 72
@diegodig9
@diegodig9 3 ай бұрын
April 2024 and still working like a charm. Thank you very much for this amazing content!!!!
@mhmzdev
@mhmzdev 7 ай бұрын
2 years, and this video is still helpful Thanks bud!
@so7300
@so7300 2 жыл бұрын
Great! Love the production quality of your videos.
@TheBlackstarEdit
@TheBlackstarEdit 2 жыл бұрын
The best flavors tutorial, you saved my day. Thanks a lot Marcus!
@rog0079
@rog0079 2 жыл бұрын
Excitement of new video
@alvin3171997
@alvin3171997 2 жыл бұрын
Finally someone that cover Flavors setup for firebase. Thank you sir!
@firgia
@firgia 2 жыл бұрын
The best Flavors tutorial. Thanks 🤩
@kirilllapshev
@kirilllapshev 2 жыл бұрын
Thank you for this amazing tutorial, you saved me lot of time!
@LucaFang
@LucaFang 2 жыл бұрын
This is super useful! Thanks for sharing!
@bmk4308
@bmk4308 2 жыл бұрын
Yeah! Marcus is back...I'm a Launchclub member. Learning a lot from your courses
@maxdegreat566
@maxdegreat566 2 жыл бұрын
@@saagilkhan5854 maybe i can answer i was subscribed for abt 4 months
@vpsrihari
@vpsrihari 2 жыл бұрын
this has always been a challenge for me. than you so much. can you also show more of production ready design patterns please.
@MarkOSullivan
@MarkOSullivan 2 жыл бұрын
Thanks for featuring flutter_launcher_icons ❤️
@flutter_man
@flutter_man 9 ай бұрын
Just a perfect tutorial, well done !
@warunakaushalya4157
@warunakaushalya4157 2 жыл бұрын
You're back after a long time 😍
@petariliev1165
@petariliev1165 2 жыл бұрын
Saved me a lot of trouble, very useful!
@hamzamateen7827
@hamzamateen7827 Жыл бұрын
This video is seriously a lifesaver. ❤
@snickr6377
@snickr6377 2 жыл бұрын
Thanks Marcus. Best flutter channel ever
@edycarreyes99
@edycarreyes99 2 жыл бұрын
X2
@tripplee11
@tripplee11 2 жыл бұрын
Very useful tutorial! Thank you !
@edycarreyes99
@edycarreyes99 2 жыл бұрын
You're the best one! 🔥💪🏻
@kevansaba3844
@kevansaba3844 2 жыл бұрын
Amazing tutorial! Thanks!!
@lugardjulien5326
@lugardjulien5326 2 жыл бұрын
exactly what I needed, thank you
@exonent
@exonent 2 жыл бұрын
The king comes back! Like then play the video!
@user-kw4kp7eq9m
@user-kw4kp7eq9m 11 ай бұрын
Good job! Thank you very much!
@DongNguyen-lu9ej
@DongNguyen-lu9ej 2 жыл бұрын
Thanks you Marcus Ng for such a great tutorial. But i wonder how can we combine this with .env file that contained different api_url, api_key for each environment ?
@binarnesia
@binarnesia Жыл бұрын
this will be very handy at my work
@philohan95
@philohan95 2 жыл бұрын
How does the correct dart-defined flavor get used when app is built from xcode or android studio which will happen when uploading a build to the respective app stores?
@DraskoSaric
@DraskoSaric 2 жыл бұрын
Great video tutorial, thank you! For some reasons I can't run this app on iOS simulator for production build? ANy idea why?
@user-cr8jr3mf3k
@user-cr8jr3mf3k 8 ай бұрын
Thanks, beautiful video
@oluwaseunodunlade3285
@oluwaseunodunlade3285 Жыл бұрын
Thank you!!!!
@safyianmughal3351
@safyianmughal3351 2 жыл бұрын
great work ♥
@JKW3973
@JKW3973 2 ай бұрын
Works Great
@cameronarnold511
@cameronarnold511 2 жыл бұрын
If we trying to create a Codemagic build, what do we specify in the Build arguments to build the specific flavor and main_*flavor*.dart file
@burntleaves1178
@burntleaves1178 2 жыл бұрын
Awesome work
@vasugajjar2325
@vasugajjar2325 2 жыл бұрын
U r back 🥳🥳
@mustafayazlmc3973
@mustafayazlmc3973 2 жыл бұрын
You the best dude
@diego2020e
@diego2020e 2 жыл бұрын
Excellent video, could you make an updated one using firebase cli?
@arnobchowdhury3191
@arnobchowdhury3191 Жыл бұрын
did you find anything
@MichaelMillerGR
@MichaelMillerGR 2 жыл бұрын
You are my savior
@fille.imgnry
@fille.imgnry Жыл бұрын
How do you use flavors when building for release? the --flavors command doesnt exist for flutter build.
@MegaMarte1992
@MegaMarte1992 Жыл бұрын
i have a ask to you, is possibel i have 2 differents folders android? and change in build wich one i will use?
@soulreaver7802
@soulreaver7802 2 жыл бұрын
What about the storage will it increase the app size
@jadenwatt1977
@jadenwatt1977 6 ай бұрын
When I generate the .ipa file to upload to the App Store, how do I make sure the right environment is being pointed to
@ahmadmaulana6938
@ahmadmaulana6938 Жыл бұрын
Thank you! I have a question, how to build apk with this configuration?
@usernotfound5857
@usernotfound5857 2 жыл бұрын
Hey Marcus, where are you from bro? Sounds like a Singapore/Malaysian accent. And btw, thanks for all your tutorials broski :D
@itzsamplays7493
@itzsamplays7493 2 жыл бұрын
Is this style inspired by fireship?
@cptsakamoto
@cptsakamoto 4 ай бұрын
How do we initialize Firebase.initializeApp with different firebase options files
@keithbacalso9433
@keithbacalso9433 Ай бұрын
I dont get it why do we have to create 3 separate files for `main_dev, ,main_stg, main_prod`. If there is already a launch.json that can target one `main.dart` ???
@jadenwatt1977
@jadenwatt1977 5 ай бұрын
I'm getting an error when running the production build on my real device. It can't find a specific import which makes no sense. Could i have set things up wrong?
@sangaranaarayananr3134
@sangaranaarayananr3134 7 ай бұрын
bro do i need to add flutter_flavors as a dependency?
@thelazycomputer99
@thelazycomputer99 2 жыл бұрын
i like the meme lol
@shilpavania4113
@shilpavania4113 2 жыл бұрын
This video helped a lot and worked with android when i try to run in ios it gives me below error. can anybody help me with this. Error: Error when reading 'lib/main.dart': No such file or directory package:untitled/main.dart: Error: No 'main' method found. Try adding a method named 'main' to your program
@vishwajeetpatil9381
@vishwajeetpatil9381 Жыл бұрын
I am also facing the same issue. Do you find any solution?
@KishanSavani-yu2bh
@KishanSavani-yu2bh Жыл бұрын
What to do when user tries to create archive from xCode and signed AAB from Android studio
@kasvith
@kasvith Жыл бұрын
Better than official docs
@parthbhanderi6077
@parthbhanderi6077 Жыл бұрын
I followed the tutorial till the icons set up and when I ran the app by selecting development flavour I got the below error in my vs code terminal. Could not find an option named "flavour". Run 'flutter -h' (or 'flutter -h') for available flutter commands and options. Does anyone face this error??
@shei69
@shei69 10 ай бұрын
use dart-define instead
@piyushlimited
@piyushlimited 2 жыл бұрын
How can I access Flavour to other files in app ? Suppose I want to write the code according to Condition if flavor == dev ? code : code So, how can I access the flavour ? Any idea ?
@sangaranaarayananr3134
@sangaranaarayananr3134 7 ай бұрын
did you find any i have seen somthing like dart-define but it is like a normal variable
@namanvaishnav6193
@namanvaishnav6193 2 жыл бұрын
Exception: You must specify a --flavor option to select one of the available schemes. ^ I'm getting this exception , need help
@namanvaishnav6193
@namanvaishnav6193 2 жыл бұрын
solved it , seems scheme name should match with flavor name in launch.json
@stenlyrachmad3854
@stenlyrachmad3854 8 ай бұрын
please help this command is not recognized in my terminal flutter pub run flutter_launcher_icons:main -f flutter_launcher_icons* zsh: no matches found: flutter_launcher_icons* I have followed the video exactly the same
@TheMartaDias
@TheMartaDias 4 ай бұрын
Did you add the package?
@RizkyRamadhan-hu3of
@RizkyRamadhan-hu3of 2 жыл бұрын
Hi dude, would you make a tutorial about BLoC state management? Thank you.
@guzidev
@guzidev Жыл бұрын
Why ios app's name is showing "DevFlavorsExample" instead "Dev Flavors Example" ? Could someone helping me with that please?
@edwardphilipguarin6460
@edwardphilipguarin6460 Жыл бұрын
it states in the tutorial that if the characters is longer than 12, then it will remove all spaces
@md.abdulhalimrafi9940
@md.abdulhalimrafi9940 2 жыл бұрын
This is an asset
Жыл бұрын
Google almost never gets anything right for developers (except for Flutter, which is awesome). Flavours themselves are one of the exceptions, those work quite well, but Firebase... Why... Why can't I use different environments dynamically from code? Why do I have to decide compile time? I've read some things about Firebase which design decisions I believe to be the cause for this, but those are bad on their own too, and then they only limit you, and complicate your build process. A proper SDK is manually initialized by its user, and you can pass in whatever you want. With Firebase, you automatically get magic bs in your app, if, which doesn't fit you, it's super hard to turn off, and since you don't get to initialize Firebase from your executable code, you need to bundle its config as resources, complicating your whole setup. Shame on Google. It's just sooooooo bad. On the other hand, your video is a godsend, very useful resource to guide us through this hell.
@battleGroundAce832
@battleGroundAce832 Жыл бұрын
Hi, I am getting an error while runnig A problem occurred evaluating project ':app'. > Could not find method flavorDimensions() for arguments [default] on project ':app' of type org.gradle.api.Project
@achmadyusuf_109
@achmadyusuf_109 Жыл бұрын
do you find the solutions?
@battleGroundAce832
@battleGroundAce832 Жыл бұрын
@@achmadyusuf_109 no
Flavors in Flutter - Multiple apps from one source code - Icon Generation
28:42
iOS Schemes with Flutter
13:31
Evoqys
Рет қаралды 4,2 М.
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 5 МЛН
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 63 МЛН
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 3,3 МЛН
35 Flutter Tips That Will Change Your Life
10:53
Flutter Mapp
Рет қаралды 294 М.
Flutter Spotify Clone Desktop/Web UI | Apps From Scratch
1:00:39
Marcus Ng
Рет қаралды 123 М.
Best 30 Flutter Widgets, Packages & Tips
5:11
Flutter Mapp
Рет қаралды 118 М.
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 538 М.
How To Maximize Performance In Your React Apps
12:58
Web Dev Simplified
Рет қаралды 93 М.
Android Product Flavors in Flutter
6:15
Evoqys
Рет қаралды 4,2 М.
Write Less Code with Flutter Hooks | Learn Flutter Fast
2:40
Marcus Ng
Рет қаралды 10 М.
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 5 МЛН