Transcript for:
Implementing Firebase in Flutter Applications

so hello everyone welcome back to programming knowledge so from today we will be starting a series in which we will be implementing Firebase features into our flirter application so without wasting any time let's move on to the details of the series so very first this series will cover like after completion of this series you will understand how to set up Firebase manually as well as from CLI another thing you will also learn how to implement email and password authentication in flirter also you will understand how to implement Firebase phone authentication phone authentication you means the Firebase will send OTP to your number another you will understand how to implement Firebase fire store how we can use Firebase fire store okay then moving on to next we will understand what is Firebase storage after that we will understand what is fcm and how we will Implement so this after the completion of this series you will understand the following topics so let's move on to our today's and the very first topic into our Series in this we will be set up Firebase so using in this we will be using Firebase console to set up Firebase very first you should have an account a Gmail account on which you you will create a on which you will create you will log into Firebase console second we will be creating a project on the console third we will create a project in flirter then on the last step we will connect both of the projects so let's go to our console now on the Google search for Firebase console then search you will get the first l don't open that link scroll a bit and open the Firebase console you can see console. Firebase just click on that after clicking on that you will see a page now in this let's just dismiss this for now now click on get started with Firebase project so it will tell you so in this step we are creating a project so we are on the Second Step so let's create I will name this login sign so just accept the terms and condition and click on continue and click on continue after that continue select the state if you want to change it I don't want to change it right uh okay just click on create project so it will take some time and will successfully create your project now you can see a Firebase project is ready click on continue so now you can see this is the overview of our Firebase console so now open the Android Studio click on new flutter project then select the path then click on next so now give the project name so I will give the S sign up loging then I don't want for Linux Mac OS web or windows then click on create so it will create your project successfully now you can see our flutter project is also ready so let's just skip it like this only so our third step is also completed now moving on to our fourth step which is Firebase which is connecting Firebase with flirter so how to do that go to the Firebase console go go to click on Android then give the package name over here so how to get this package name go to Android Studio open the Android fold now go to build. gridle I think okay go go to the app folder go to build. gridle over here you can see this name space just copy this go to the console and paste it over then if you want to give any application I'm prefer I am giving is author you don't need if like it's optional click on register app after this it will tell you to download the Google service Json file click on that so it will download after downloading copy it then paste it onto the Android project so now where to paste it so let me show you see in this page it's telling us we have to paste this on the app level folder so let's go to this open the app click on app and paste it over so now it's perfect and add this so it successfully added now go to the next step so in the next step we will copy the plugins then go to Android Studio open the android. build grader so it will be in this folder when you'll open the folder you can see over here there is a build. gradel file just open this come over here and paste it okay then go go back to the console and over here just check the copy this go to the app level build TR file you can find it in the app level here after opening that go here and paste it when you will do this successfully you are you are all set to go then go to console again click on next click on continue to console after doing that just go to Android Studio open the terminal search for flirter Pub get fire basore code and end so there's a slight mistake you have to write add FL up of add Firebase code after adding that you have to do flutter Pub get after doing that go to main. file over here so SE for widgets binding wiet binding dot okay wiget flter binding do ensure initialized then type over here Firebase dot initialize app and add a weight front of that so now our app is ready so let's just connect and run the application to run connect your device I am connected my phone using USB after connecting click on run and wait and let this to be done so now you can see the flirter app is successfully run this means our Firebase is successfully connected to the flutter application so you can see it is running let me just remove the now you can see it's running so this is how we can create a we can connect a flutter project to the fire Bas so we are successfully done over here so in this video we successfully learned how to set a Firebase project how to create a Firebase project and connected with a flirter application so in the next video we will see how to connect our Firebase project with a flutter project using Firebase CLM this is that is little more easy comparing to this so we will look for that also till then thank you