<aside> ❗ Setting up the development environment can be a lot more time consuming than expected. Don’t be discouraged - once you’re set up, everything should be ready to go and you won’t have to do too much more setup.

</aside>

4.0 Introduction

Welcome to this tutorial on how to use Firebase with Flutter. Firebase is a tool by Google that provides backend services such as Realtime Database, Firestore, Authentication, Cloud Storage, and Cloud Functions.

This guide will walk you through setting up Firebase in your Flutter project.

4.1 Create and configure a Firebase project

4.1.1 Create a Firebase project

  1. Sign in to Firebase.

  2. In the console, click Add Project or Create a project.

  3. In the Project name field, enter Firebase-Flutter-Codelab and then click Continue.

    Untitled

  4. Click through the project creation options. If prompted, accept the Firebase terms, but skip setup of Google Analytics because you won't be using it for this app.

    Untitled

  5. Your Firebase project is ready!

    Untitled

4.1.2 Enable email sign-in authentication

  1. In the Firebase console's Project overview pane, expand the Build menu.
  2. Click Authentication > Get Started > Sign-in method > Email/Password > Enable > Save.

Untitled

4.1.3 Enable Firestore