Flutter Tutorial - Firebase Hosting - Deploy Flutter Web App

  Рет қаралды 48,471

HeyFlutter․com

HeyFlutter․com

Күн бұрын

Пікірлер: 122
@HeyFlutter
@HeyFlutter 2 жыл бұрын
This might help you :) 👉 12 Week Flutter Training from Newbie to Expert: heyflutter.com Source Code: github.com/JohannesMilke/flutter_firebase_hosting NPM Download Website: nodejs.org/en/ Setup Firebase Functions Tutorial: kzbin.info/www/bejne/bYbGfmmPZpd_e80 Firebase CRUD Tutorial: kzbin.info/www/bejne/e4eVdayogLSkqLs Firestore Pagination Tutorial: kzbin.info/www/bejne/f6PYpq2GrsmDsJY Chat App With Firebase: kzbin.info/www/bejne/rXmslH16hsd1fNU Riverpod Tutorial: kzbin.info/www/bejne/bnmWk6qurdGUars Social App UI: kzbin.info/www/bejne/hqengJqFmbqaobc Todo App From Scratch Tutorial: kzbin.info/www/bejne/oX-cipmaacuoZpY Shop UI From Scratch Tutorial: kzbin.info/www/bejne/eYK9o2B9jcqSlbs Chat App With Firebase Tutorial: kzbin.info/www/bejne/rXmslH16hsd1fNU Movie App UI Tutorial: kzbin.info/www/bejne/l33am55jfJeEn80 Onboarding UI Screen Tutorial: kzbin.info/www/bejne/eYLPcmWmYpKie8k
@Mark-mo4bo
@Mark-mo4bo 3 жыл бұрын
You just saved a week of my life with my app crashing on its ass because of embedding js version 9 of the sdks. Showing how to find the right flutter-compatible versions in your video embedded in the docs page was so simple but really important! Thank you for all your efforts my friend!
@aytunch
@aytunch 2 жыл бұрын
This is seriously awesome. Thanks man, you are a GEM for the Flutter community and also humanity :D
@edergomes5952
@edergomes5952 Жыл бұрын
Man, your channel is fantastic. Your teaching is incredible. I don't know how many times you saved me anymore. You've already helped a lot of people on this planet, man. Congratulations!!! 🙂
@HeyFlutter
@HeyFlutter Жыл бұрын
Glad I could be of help, Thank you @edergomes5952! 😊
@brightthebackpack
@brightthebackpack 2 жыл бұрын
you have been helpign me ever since i've been deploying my project. you have officially earned a subb from the backpack
@foreachbyte8163
@foreachbyte8163 3 жыл бұрын
Thank you sir. Been scratching my head the whole day, until I found your solution.
@patricknasc
@patricknasc 3 жыл бұрын
I definitely love your content! Very straightfoward and it simply works! I wish you success!
@zk__27
@zk__27 2 жыл бұрын
Went through quite a few challenges, but thank you. It worked!
@officialismailshah
@officialismailshah 3 жыл бұрын
Thank you so much for this amazing content johannes, hope you will become GDE soon, and if you are a GDE than you deserve the title....
@KashifAli-Hollow
@KashifAli-Hollow 3 жыл бұрын
man you are so underrated. Your videos are the best. Thanks for helping and teaching us
@bijayaadhikari442
@bijayaadhikari442 3 жыл бұрын
Brother, next make a full page website/portfolio with flutter web. And yes you always rocks.
@althafaralijaffarali1803
@althafaralijaffarali1803 3 жыл бұрын
Awesome bro 🔥. Keep rocking. Could you please make an entire mini Web app with domain name and etc...that we can also view as a subscriber/client. Very excited 🤩to view your app,which we can even build by following your videos.
@randomgamesintl
@randomgamesintl 2 жыл бұрын
Sehr gutes & hilfreiches Video. Hut ab! Das Video hat mir sehr geholfen . :-)
@zechsd1756
@zechsd1756 3 жыл бұрын
Just in case someone ran into a similiar problem. For some reason the automatically generated gitignore file from github can include the build folder. For that reason the automatic deploy may not work. To fix this you just have to remove the build folder from the gitignore file.
@M37Shadow
@M37Shadow 3 жыл бұрын
thanks a lot man almost gave up on website apps but u brought my hope back
@odedgilad9761
@odedgilad9761 Жыл бұрын
thank you very much, i saw somw other video but you the only one that acsually helped me
@HeyFlutter
@HeyFlutter Жыл бұрын
Glad it was helpful, @odedgilad9761 😀
@bogyayb
@bogyayb 2 жыл бұрын
Thanks man, yout just saved my semester! I have 1 small problem, my favicon is not there in the browser, not in local and not after deployment, but the basic flutter logo favicon is there in his place. Help me man! 🙏🏼
@ankit_apk
@ankit_apk 3 жыл бұрын
Thank you Johannes. Also make a video on how to update an existing project.
@ankit_apk
@ankit_apk 3 жыл бұрын
@@HeyFlutter 😀 good to know that.
@danieldickson4656
@danieldickson4656 2 жыл бұрын
Came back to this because I missed setting "Build/web" directory. Edit: thanks a lot Johannes
@ezeaguprincewill7005
@ezeaguprincewill7005 3 жыл бұрын
Thanks alot for this. I will be needing this pretty soon.
@StevenLudmon
@StevenLudmon Жыл бұрын
Another great video, thanks again!
@HeyFlutter
@HeyFlutter Жыл бұрын
Thanks, @StevenLudmon! 🙂
@WhyMe432532
@WhyMe432532 Жыл бұрын
When I need to learn anything flutter related I go to KZbin and type: "Johannes Milke ..." and fill out what I want to learn about.
@HeyFlutter
@HeyFlutter Жыл бұрын
Hey, @WhyMe432532 🙂 it's really great to know
@TheEkkas
@TheEkkas 3 жыл бұрын
Thanks, got stuck and this made it clear/easy.
@bv-9157
@bv-9157 2 жыл бұрын
it works finally thank you man ! i really appreciated it
@DDOCTORGaming
@DDOCTORGaming 2 жыл бұрын
If I created A flutter application with its database being firebase/ firestore can i still do this? since it's a flutter mobile application and not a web application? I basically need users to be able to access certain app screens (to modify the database fields such as add/delete and remove documents from collections) on a PC instead of the mobile app only. Thanks. Looking forward to your reply.
@DDOCTORGaming
@DDOCTORGaming 2 жыл бұрын
@@HeyFlutter How do i do that though? cause im a bit confused
@brightthebackpack
@brightthebackpack 2 жыл бұрын
my website is just a grey screen. hwo to fix?
@poisonels8023
@poisonels8023 3 жыл бұрын
Please can you make video on flutter web with Firestore usage from scratch to host?
@olawoleoyedele4212
@olawoleoyedele4212 2 жыл бұрын
Hello! I just finished deploying my Web app through this tutorial, thanks alot, but I'm unable to load my project manually. Any time I change my code and press hot restart it doesn't reflect in the local Web app.
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You Olawole Oyedele! Follow this link: stackoverflow.com/questions/65874057/changes-not-reflecting-on-flutter-web-deploy-after-firebase-project-owner-change I hope you will get your answer 🙂
@janammaharjan2699
@janammaharjan2699 2 жыл бұрын
Thank you so much for the Tutorial. Regards Janam
@janammaharjan2699
@janammaharjan2699 2 жыл бұрын
@@HeyFlutter Thank you again
@LMrc534
@LMrc534 2 жыл бұрын
Hi johannes my website work fine in desktop mode but it provides a white screen on mobile mode. Can you help me please 🙏?
@kriskis9774
@kriskis9774 3 жыл бұрын
Thank you, Johannes! Your tutorial helped a lot! I faced one issue: when I deployed my web app the image assets that I added to initial project don't show. However, they show when I launch web app locally. Could you please suggest where could the root of this problem lay?
@kriskis9774
@kriskis9774 3 жыл бұрын
Thanks a million for your help,Johannes! Will get around to it 🤗
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thanks, Kris Kis! 🙂 Make sure that the server from which you load your image allows you to access it, because on Flutter Web & in browsers the CORS mechanism could disallow you to access these resources. All in all, the problem is on the server side, not in your Flutter app! Learn more about it here: flutter.dev/docs/development/platform-integration/web-images#cross-origin-resource-sharing-cors
@HeroRickyGames
@HeroRickyGames Жыл бұрын
Very good, you help me a lot!
@HeyFlutter
@HeyFlutter Жыл бұрын
Glad to hear that, Thank you HeroRicky_Games! 😊
@kamalkishorkumar4278
@kamalkishorkumar4278 3 жыл бұрын
It worked thanks for the video
@JAY-bo7tg
@JAY-bo7tg 2 жыл бұрын
You are awesome
@alikarimi01
@alikarimi01 2 жыл бұрын
Thanks , I have a problem that happened for GitHub and also Firebase hosting that the screen is white and nothing is not shown
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You Ali Karimi! Follow this link: github.com/flutter/flutter/issues/70558 I hope you will get your answer 🙂
@swayamshreemohantyvlogs8126
@swayamshreemohantyvlogs8126 2 жыл бұрын
Just awesome....you save me man... Thanks
@uditmishra5583
@uditmishra5583 2 жыл бұрын
Thanks very helpful 👍. Can you please make video for web renderer. I also got issue with scrolling in web.
@Apoorvpandey
@Apoorvpandey 3 жыл бұрын
How to fix the CORS issue for flutter web?
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thanks Apoorv! :) Learn more about it here: flutter.dev/docs/development/platform-integration/web-images#cross-origin-resource-sharing-cors You need to allow some headers on your server side, so it doesn't have to do anything with Flutter directly. Add these headers on the response of your server for your images / other responses: { "Access-Control-Allow-Origin" : "*", "Access-Control-Allow-Headers", "*", "Access-Control-Allow-Methods", "POST,GET,DELETE,PUT,OPTIONS", } Also check out this article to learn more about security & CORS: mobilejazz.com/blog/which-security-risks-do-cors-imply/
@mohamedabdelrahman-flutterdev
@mohamedabdelrahman-flutterdev Жыл бұрын
This is seriously awesome
@HeyFlutter
@HeyFlutter Жыл бұрын
Thanks, Mohamed Rahman! 🙂
@mycloudvip
@mycloudvip Жыл бұрын
Hi, one of my project is setup as public as the default path, is there a way to load /build/web/ and leaving the current setup as it is in firebase? I am using this inside the web/index.html
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, @mycloudvip! 🙂. Try to provide enough details with your question whenever you face any issue.
@moustaphakoita4884
@moustaphakoita4884 2 жыл бұрын
Hi i wanna create an application where people can host there site, so i wanna how i can create it?
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You Moustapha koita! Follow this link: medium.com/flutter-community/hosting-flutter-web-applications-on-firebase-for-free-with-generous-spark-plan-a87ef2aa8d0d I hope you will get your answer 🙂
@yazanzaid1465
@yazanzaid1465 2 жыл бұрын
Thanks a lot, really useful.
@dhanniekristanto
@dhanniekristanto 3 жыл бұрын
is there any difference if you init the project as SPA or multi page application?
@templetonmeshack2816
@templetonmeshack2816 Жыл бұрын
Hi Johannes. I managed to deploy my website on firebase but the images on my internal asset folder wont show after hosting the website, how do I get around this issue?
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You Templeton Meshack! Follow this link: stackoverflow.com/questions/58878346/flutter-web-asset-images-not-displaying-when-deployed-to-web-server I hope you will get your answer 🙂
@andrejvujic
@andrejvujic 3 жыл бұрын
Hey! Could you do a video on Google Sign In with Firebase on Flutter Web? I have been having some trouble with it. Thank you. Love the videos!
@andrejvujic
@andrejvujic 3 жыл бұрын
@@HeyFlutter Thanks for the quick response! I will.
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Yes, You can do it. Simply watch my video here: Google Sign Tutorial: kzbin.info/www/bejne/pZi6aWaufLZ6isk 1) Also set the SHA1 & SHA256 Like shown in the video. 2) Set your port to 5000 by calling: flutter run -d chrome --web-port 5000. This is the standard port used by firebase.
@crazyapplication4224
@crazyapplication4224 3 жыл бұрын
great video.
@lanceolana8277
@lanceolana8277 2 жыл бұрын
Hi Johannes! Is this process free?
@nateg617
@nateg617 Жыл бұрын
Using this way are API keys hidden by the public? Is it safe to publish a web app using an API key using this method on Firebase Hosting?
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You Nathaniel Gutelman! Follow this link: firebase.google.com/docs/projects/api-keys I hope you will get your answer 🙂
@DanielTubul
@DanielTubul 3 жыл бұрын
AMAZING CONTENT!
@kumargaurav8459
@kumargaurav8459 3 жыл бұрын
I made one app using flutter and firebase. Its content is dynamic. Can dymanic website can be hosted on Firebase hosting?
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You Kumar Gaurav! Follow this link: flutter.dev/docs/deployment/web I hope you will get your answer 🙂
@SamBaltimore
@SamBaltimore 2 жыл бұрын
thank you for the tutorial really helpful, why i still getting a blank page even if i run it locally but on iOS emulator runs fine.
@SamBaltimore
@SamBaltimore 2 жыл бұрын
@@HeyFlutter nothing but maybe i know the problem the app uses geoLocation and firebase. Should i integrate firebase web too as well ?
@SamBaltimore
@SamBaltimore 2 жыл бұрын
Thanks for your fast answer 🤗
@SAGskills
@SAGskills 3 жыл бұрын
hello bro ,, my admin web app i have deployed by command firebase deploy --only hosting, its work but the images not showing which stored in storage, its admin app when the admin approve ads for publish user upload image and admin approve that ads , but if i deploy by command firebase deploy it throw error " unexpected format rules:
@SAGskills
@SAGskills 3 жыл бұрын
@@HeyFlutter please a video how to set CORS for web flutter app to give access diffrent browser origin
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Hello, SAG skills! Follow this link: stackoverflow.com/questions/59539777/flutter-unhandled-exception-formatexception-unexpected-character-at-charact, I hope it will solve your problem. Thank You 🙂
@sharannagarajan4089
@sharannagarajan4089 2 жыл бұрын
thankss
@BassiL1sk
@BassiL1sk 2 жыл бұрын
Hello, will this also work on the android apk app if i build the APK to any android phone?
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank you, BassiL1sKClips! 🙂. Yes it will work.
@dickydarmawan4790
@dickydarmawan4790 3 жыл бұрын
Thanks
@welintonceconello7574
@welintonceconello7574 Жыл бұрын
The problem of: Process completed with exit code 1." Just set Channel= Stable
@HeyFlutter
@HeyFlutter Жыл бұрын
Great, Thank you Welinton Ceconello!
@parkerjones2810
@parkerjones2810 2 жыл бұрын
I keep getting a "missing index.html" error when using the "flutter build web" command. Has anyone else run into this?
@parkerjones2810
@parkerjones2810 2 жыл бұрын
ahh. looks like i forgot to set up my project to support web initially. for anyone else having this problem .. just go to your console and add web support. with the "flutter config --enable-web" command. then run "flutter create ." Then you should be good to go!
@malikabdulsamiawan4085
@malikabdulsamiawan4085 3 жыл бұрын
Thankyou for the such good content could you please help me with this error i deploying hosting Error: Hosting site or target server-id not detected in firebase.json
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Hello, Malik Abdul Sami Awan! Follow this link: github.com/firebase/firebase-tools/issues/2731, I hope it will solve your problem. Thank You 🙂
@kdjd6768
@kdjd6768 Жыл бұрын
So after I do everything is it okay to no longer have the project file on my device
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, Kd Jd! 🙂. No it is necessary.
@kdjd6768
@kdjd6768 Жыл бұрын
@@HeyFlutter is there anyway to no no longer need the files on my device after I compile them
@kdjd6768
@kdjd6768 Жыл бұрын
@@HeyFlutter can you please explain to me why it can't be done
@omniatayfoor4892
@omniatayfoor4892 2 жыл бұрын
I am a flutter developer but i haven't worked in web development. I am working on a flutter web app, a wikipedia type website and i will be using firebase for storage. I am wondering if its wise to host it in firebase hosting as opposed to hostinger or any other hosting service. Could you tell me the benefits of each in this case
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You Omnia Tayfoor! Follow this link: www.quora.com/How-is-Firebase-hosting-different-from-other-hosting-providers I hope you will get your answer 🙂
@omniatayfoor4892
@omniatayfoor4892 2 жыл бұрын
@@HeyFlutter Thank you 😄
@void4904
@void4904 3 жыл бұрын
I got error "docker: invalid reference format: repository name must be lowercase." in Deploy Firebase Hosting part. please help..🙏
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank you, 리처드 파인만! You could learn more about this issue here: github.com/firebase/firebase-tools/issues/2203
@muhdtariqali3607
@muhdtariqali3607 2 жыл бұрын
Hello how can I have adsense or any other advertising third party on my flutter web
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank you, muhd tariq ali! 🙂 flutter haven't announced admob for flutter web you can expect it in 3.0 release
@poisonels8023
@poisonels8023 3 жыл бұрын
I have problems to use Firestore on web
@taufiqhasib9720
@taufiqhasib9720 2 жыл бұрын
how to remove the hash tag from the website link ?
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank you 😊, taufiq hasib! Check out this solution : stackoverflow.com/a/65709246
@suhas_joshi
@suhas_joshi 2 жыл бұрын
Give some e-commerce web app examples also
@suhas_joshi
@suhas_joshi 2 жыл бұрын
Thank you sir because now this days web app so famous thats why I'm requesting you sir 🙏
@Patrickus23
@Patrickus23 2 жыл бұрын
Is this working for mobile apps too?
@Patrickus23
@Patrickus23 2 жыл бұрын
@@HeyFlutter do you have a tutorial for mobile apps as well?
@Roman10-6
@Roman10-6 10 ай бұрын
how to fix welcon screen issue?
@HeyFlutter
@HeyFlutter 10 ай бұрын
Hey, @romanayub 🙂 can you share more details about issue you are facing?
@Roman10-6
@Roman10-6 10 ай бұрын
@@HeyFlutter Thank you dear, I fixed it, But i have some issue with reaposnive screen to all screens (iphones , tablets and disktop), When screens change the designed were mixed , Please share more tutorials about responsive screens
@truelife9057
@truelife9057 2 жыл бұрын
Does this have any cost?
@truelife9057
@truelife9057 2 жыл бұрын
@@HeyFlutter Thank you so much
@mhmzdev
@mhmzdev 3 жыл бұрын
Repo is not public I think!
@peteruase1517
@peteruase1517 2 жыл бұрын
I love u
@RaihanKhafidz
@RaihanKhafidz Жыл бұрын
Might I add that in the main.yaml file, it would be best to add this line to get the latest dart sdk: - uses: dart-lang/setup-dart@v1 And also to change channel: 'dev' to channel: 'stable' This will prevent building error during action due to outdated sdk.
@HeyFlutter
@HeyFlutter Жыл бұрын
Great, Thank you Raihan Khafidz!
@AvtarSingh-mw3ec
@AvtarSingh-mw3ec Жыл бұрын
Thank You Sir
@HeyFlutter
@HeyFlutter Жыл бұрын
Glad it was helpful, @AvtarSingh-mw3ec 😀
@adriancabahug2331
@adriancabahug2331 3 жыл бұрын
Some images on my project didnt load when hosted on firebase how to fix this ? The images are on the same folder but not all of them loaded
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank you, Adrian Cabahug! 🙂 make sure to open image link in browser check if it works or not, it maybe some issue with Image link
Flutter Tutorial - Todo App From Scratch - Firebase CRUD
20:11
HeyFlutter․com
Рет қаралды 27 М.
React Native vs Flutter in 2024 - Make the RIGHT Choice (Difference Explained)
10:31
Daniel Dan | Tech & Data
Рет қаралды 174 М.
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 35 МЛН
So Cute 🥰
00:17
dednahype
Рет қаралды 49 МЛН
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 7 МЛН
Flutter Web App Deploy on Firebase
5:33
AI with Flutter
Рет қаралды 27 М.
The BEST Tool to Deploy Your Apps (Stop using Vercel)
10:07
Top 10 Flutter Widgets (for Responsive Layouts)
13:17
HeyFlutter․com
Рет қаралды 72 М.
How to handle hosting for clients - What mistakes to avoid
17:42
Rino de Boer
Рет қаралды 253 М.
Flutter Basic Training - 12 Minute Bootcamp
12:09
Fireship
Рет қаралды 901 М.
Deploying Your Website to Firebase
5:13
Hayk Simonyan
Рет қаралды 43 М.
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 555 М.
Advanced FlutterFlow: VSCode and Publishing to Your Own Server
30:24
WebRTC in 100 Seconds // Build a Video Chat app from Scratch
11:19
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,5 МЛН
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 35 МЛН