Hi Paul, Is there any way to load API_KEYS from the .env file to the AndroidManifest.xml file? Can you guide me to store my GMap_API_KEY safely and retrieve it?
At 8:06 are the "release modes" just another way of saying "Flutter Flavors"? If so, would you call these release modes "inline flavors"? I.e. the flavor is handled in a single file conditional rather than in main_development.dart and main_production.dart, etc. I'm trying to determine if I even need to use flutter_dotenv if I instead use flutter_flavor. Would you recommend using one instead of the other? Or can both be used together complimentary?
Hey Aaron! In this circumstance, this would be separate from flavors. The release/profile/debug modes can be thought of as production/development build(s) that would have specific configurations. Flavors can be thought of as specific configurations of an app, so you’d want to take advantage of environment variables here too. That specific flavor can be in release/profile/debug mode depending on whether you’re building the application for production or local development. Hope that helps!
I use Pop and Lock (marketplace.visualstudio.com/items?itemName=Luxcium.pop-n-lock-theme-vscode) in this video. Here’s a link to all my uses: developer.school/uses
I have not implemented multiple environments but I have implemented flutter_dotenv and I've created a couple of variables including an API key. My .env file is on the .gitignore list. I'm trying to deploy via Netlify, and the build is failing because there is no .env file found. I plan to follow the guide in this video but I don't think it will help with this issue, will it? How can I implement environment variables in a Flutter app that work with Netlify or similar hosting services?
Wouldn't including all env files in the assets leak the dev environment in production? someone disaabmeling the files can get potentially exposure to all your environments ?
Really good video, short and concise. Showed everything I needed to know about the package.
I was stuck on trying to figure this out for wayyy too long until I watched this. Thanks alot man!
Such an excellent way to explain things. The tutorial is a whole environment variable package!
Kudos!🎉
HI, thank you for this video. If you don't add these to source control, how would you set them during the build time?
Hi Paul, Is there any way to load API_KEYS from the .env file to the AndroidManifest.xml file? Can you guide me to store my GMap_API_KEY safely and retrieve it?
Thanks. local PC works well. But when I run in GIT Actions,
"Error detected in pubspec.yaml:
No file or variants found for asset: .env."
I would love to see this addressed. The whole thing can't really be used if the app won't build in the actual production environment.
that is the best solution, thank you very much
At 8:06 are the "release modes" just another way of saying "Flutter Flavors"? If so, would you call these release modes "inline flavors"? I.e. the flavor is handled in a single file conditional rather than in main_development.dart and main_production.dart, etc.
I'm trying to determine if I even need to use flutter_dotenv if I instead use flutter_flavor. Would you recommend using one instead of the other? Or can both be used together complimentary?
Hey Aaron! In this circumstance, this would be separate from flavors.
The release/profile/debug modes can be thought of as production/development build(s) that would have specific configurations.
Flavors can be thought of as specific configurations of an app, so you’d want to take advantage of environment variables here too.
That specific flavor can be in release/profile/debug mode depending on whether you’re building the application for production or local development.
Hope that helps!
We really needed this thank you!
Glad it helped! Any other issues you’d like covering?
Thanks for this video. Short but covers everything from basics to advanced usage gradually.
What's that theme you're using btw? Looks nice.
I use Pop and Lock (marketplace.visualstudio.com/items?itemName=Luxcium.pop-n-lock-theme-vscode) in this video. Here’s a link to all my uses: developer.school/uses
Greate! Thanks, but one question. For the flutter web, what's up?
in my experience flutter web doesn't like the file to be named '.env' you need to call it 'dotenv' or something similar.
awesome!!! thanks for sharing
I have not implemented multiple environments but I have implemented flutter_dotenv and I've created a couple of variables including an API key. My .env file is on the .gitignore list.
I'm trying to deploy via Netlify, and the build is failing because there is no .env file found. I plan to follow the guide in this video but I don't think it will help with this issue, will it?
How can I implement environment variables in a Flutter app that work with Netlify or similar hosting services?
Really good video , thank you so mush , 💖💖💖💖
Wouldn't including all env files in the assets leak the dev environment in production? someone disaabmeling the files can get potentially exposure to all your environments ?
great tutorial thanks man :)
Please, i need to see the github, anyone else have the link?
great video thanks
What is it giving suggestions of code all around?
Github Co-Pilot
awesome
please explain get_cli 1.7.1 at windos
VS Code Theme name ? please..
material icons
Thank you
why did you stop making flutter videos ?
tak membantu pun.
dislike dislike dislike!!!
totally unsafe. stay away from dotenv variables. easily decodable from app
Which do you recommend then?
I needed this tutorial, thanks!!!