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 ?
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?
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
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` ???
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?
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
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??
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 ?
it states in the tutorial that if the characters is longer than 12, then it will remove all spaces
2 роки тому+1
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.
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
2 years, and this video is still helpful
Thanks bud!
2024 Nov and still works. Plus your explanations are crystal clear. Thanks a bunch.
April 2024 and still working like a charm. Thank you very much for this amazing content!!!!
Yeah! Marcus is back...I'm a Launchclub member. Learning a lot from your courses
@@saagilkhan5854 maybe i can answer i was subscribed for abt 4 months
Finally someone that cover Flavors setup for firebase.
Thank you sir!
The best flavors tutorial, you saved my day. Thanks a lot Marcus!
Thanks Marcus. Best flutter channel ever
X2
Great! Love the production quality of your videos.
The best Flavors tutorial.
Thanks 🤩
Excitement of new video
Thanks for featuring flutter_launcher_icons ❤️
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 ?
The king comes back! Like then play the video!
still working ... thanks :)
This is super useful! Thanks for sharing!
Really simply explained. Thanks
You're the best one! 🔥💪🏻
This video is seriously a lifesaver. ❤
Just a perfect tutorial, well done !
Very useful tutorial! Thank you !
Thank you for this amazing tutorial, you saved me lot of time!
this has always been a challenge for me. than you so much. can you also show more of production ready design patterns please.
Good job! Thank you very much!
You're back after a long time 😍
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?
Saved me a lot of trouble, very useful!
this will be very handy at my work
Works Great
Amazing tutorial! Thanks!!
exactly what I needed, thank you
Excellent video, could you make an updated one using firebase cli?
did you find anything
Is this style inspired by fireship?
Thanks, beautiful video
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
I am also facing the same issue.
Do you find any solution?
Thank you!!!!
Great video tutorial, thank you! For some reasons I can't run this app on iOS simulator for production build? ANy idea why?
You the best dude
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
When I generate the .ipa file to upload to the App Store, how do I make sure the right environment is being pointed to
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` ???
i have a ask to you, is possibel i have 2 differents folders android? and change in build wich one i will use?
but what if i want to keep the code of each flavor separate. i have to create separate branch for each environment.
bro do i need to add flutter_flavors as a dependency?
How do we initialize Firebase.initializeApp with different firebase options files
Thank you! I have a question, how to build apk with this configuration?
How do you use flavors when building for release? the --flavors command doesnt exist for flutter build.
U r back 🥳🥳
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?
def helpful
great work
♥
Awesome work
Better than official docs
What about the storage will it increase the app size
You are my savior
Exception: You must specify a --flavor option to select one of the available schemes.
^ I'm getting this exception , need help
solved it , seems scheme name should match with flavor name in launch.json
Hey Marcus, where are you from bro? Sounds like a Singapore/Malaysian accent.
And btw, thanks for all your tutorials broski :D
What to do when user tries to create archive from xCode and signed AAB from Android studio
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
Did you add the package?
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??
use dart-define instead
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 ?
did you find any i have seen somthing like dart-define but it is like a normal variable
Why ios app's name is showing "DevFlavorsExample" instead "Dev Flavors Example" ?
Could someone helping me with that please?
it states in the tutorial that if the characters is longer than 12, then it will remove all spaces
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.
i like the meme lol
This is an asset
Hi dude, would you make a tutorial about BLoC state management? Thank you.
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
do you find the solutions?
@@achmadyusuf_109 no