Enable Dark Mode!
how-to-connect-cloud-firestore-plugin-with-flutter.jpg
By: Mohamed Muzammil P

How to Connect Cloud Firestore Plugin With Flutter

Flutter

Firebase, Inc., a Google company, has developed a comprehensive platform for developing mobile and web applications. It offers a vast range of resources and services to assist developers in creating, enhancing, and expanding their apps more successfully. Firebase has several functionalities, including a Real-time database, Authentication, Cloud Firestore, Cloud Storage, Analytics, etc…

To start with Firebase, first, you need to create a Firebase project, Go to the link https://console.firebase.google.com/ log in with your Google account, and then you get the interface to create a project.

how-to-connect-cloud-firestore-plugin-with-flutter-1-cybrosys

Click on the Create Project button. Then you get the window to create a project. Enter the project name, accept the terms then click on the Continue button.

how-to-connect-cloud-firestore-plugin-with-flutter-2-cybrosys

After click continue you get another window shown below.

how-to-connect-cloud-firestore-plugin-with-flutter-3-cybrosys

Here it asks you if you want to run Google Analytics on your project. Then click on the Create project button.

Your project is created!!

how-to-connect-cloud-firestore-plugin-with-flutter-4-cybrosys

Now click on the Continue button.

To connect the firebase with our flutter project first choose the app for which it is going to create.

how-to-connect-cloud-firestore-plugin-with-flutter-5-cybrosys

Select IOS, Android, or Web according to your need.

For example, if you choose Android then, you can see a window like shown below.

how-to-connect-cloud-firestore-plugin-with-flutter-6-cybrosys

You need to enter the Android package name there to get to the IDE,

Go to Android -> app open build.gradle

how-to-connect-cloud-firestore-plugin-with-flutter-7-cybrosys

Copy the application Id, and paste it into the Android package name field.

how-to-connect-cloud-firestore-plugin-with-flutter-8-cybrosys

Then click on the Register app Button.

how-to-connect-cloud-firestore-plugin-with-flutter-9-cybrosys

Download google-services.json.

Put the file in our project folder.

how-to-connect-cloud-firestore-plugin-with-flutter-10-cybrosys

Now click the Next button.

how-to-connect-cloud-firestore-plugin-with-flutter-11-cybrosys

Copy the dependency plugins,

how-to-connect-cloud-firestore-plugin-with-flutter-12-cybrosys

Paste it inside the plugins in the build.gradle file.

Now our flutter project is connected with Firebase.

To read more about creating data on SQlite database in Flutter, refer to our blog How to Create Data on SQlite Database in Flutter


If you need any assistance in odoo, we are online, please chat with us.



0
Comments



Leave a comment



whatsapp_icon
location

Calicut

Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park
Kakkancherry, Calicut
Kerala, India - 673635

location

Kochi

Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, India - 682030.

location

Bangalore

Cybrosys Techno Solutions
The Estate, 8th Floor,
Dickenson Road,
Bangalore, India - 560042

Send Us A Message