Add A Firebase Backend To Your Flutter App Fast!
Read this story with code syntax highlighting on Coffeeclass.io.
Whenever I work with Firebase, I always seem to run into small issues that can be very annoying (yet simple) to solve. When I tried to connect my Flutter application to a Firebase backend for one of my personal projects, I ran into some small issues that set me back some time. Because of this, I decided to write a simple and straightforward article showing you how to connect your Flutter application to a firebase backend for both IOS and Android. After this tutorial, you will be all set to add authentication, cloud Firestore, or any other Firebase feature you might want.
Pre Reqs
To keep this tutorial short, I expect that you have the following:
- You have Flutter installed on your machine
- You have a Flutter project started already and are ready to connect it with Firebase
If you don’t have those 2 things yet, you can read my last article where I go over how to do just that.
Creating a Firebase Project
Before we start working in Flutter, we need to create a Firebase project.
- Go to https://console.firebase.google.com/
- Click on Add Project
- Enter a project name
- Choose if you want Google Analytics to be enabled (I recommend this)