Quick Set-Up- Integrating Flutter App With Firebase

Yogita Kumar
Jan 6 · 4 min read

Flutter and Firebase works together to help you to build mobile applications in record time. Flutter is Google’s SDK for creating mobile apps for iOS and Android device. Firebase works as a backend for mobile apps. It gives you facilities like authentication, database, storage, hosing and many more without maintaining your own server.

Prerequisite : Existing flutter app in which user want to integrate firebase, If yes then start follow from step 2. Otherwise,

Step 1. Create new flutter project in Android Studio

Give name for flutter app

set company domain for your app

then click on Finish

Here is flutter app created.

Step 2. Now come to firebase, Don’t have an account then create one. It’s free.

Step 3. Login to your firebase account -> Go to console

click on Add Project

Give the name for project, This can be a different name from flutter app name. Must be meaningful to flutter app, so that in future if required, user can refer it.

Click on Continue button.

just select for Google analytics for my project. This is optional you can set it later on also and click on Continue and pass through this screen.

Select Default Account for Firebase and click on Create Project.

Click on Continue button.

Step 4. Now to add android flutter app click on android symbol(circled with red)

Enter android package name. This should be match with your flutter app package name.

Find it from flutter app,

appname->android->app->build.gradle file(highlighted package name)

copy it and paste it here.

click on Register app.

Step 5. Now click on Download google-service.json button. This file stored in Downloads folder of your system. and then click on next button.

Step 6. Copy this file under Appname->android->app folder

Step 7. Now on firebase console, got a prompt to add firebase SDK

open project level build.gradle and copy below lines.

Step 8. open app level build.gradle file and copy below lines

Step 9. click on next button from firebase console

Step 10. click on continue to console

just run your app. Remember while doing firebase connection your app must be stopped.

Congratulations you successfully added your flutter app to firebase !!!

View source code here

How to create collection and access data from Cloud Firestore, please refer

Access Data from Cloud Firestore

Thank you!

The Startup

Get smarter at building your thing. Join The Startup’s +786K followers.

Sign up for Top 10 Stories

By The Startup

Get smarter at building your thing. Subscribe to receive The Startup's top 10 most read stories — delivered straight into your inbox, once a week. Take a look.

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox
Medium sent you an email at to complete your subscription.

Yogita Kumar

Written by

.NET Developer and Flutter Enthusiast | Coach and Trainer

The Startup

Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +786K followers.

Yogita Kumar

Written by

.NET Developer and Flutter Enthusiast | Coach and Trainer

The Startup

Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +786K followers.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store