The Complete Flutter Course: Build Android, iOS and Web Apps

Firebase or Supabase for a Flutter app

Firebase and Supabase both give a Flutter app sign-in, a database and file storage without a server of your own to run, and both have official Flutter libraries. They differ in how data is shaped, Firestore's documents against Supabase's Postgres tables, and in who can run them. This guide weighs the choice fairly, then picks out the Firebase lessons of The Complete Flutter Course: Build Android, iOS and Web Apps, which teaches Firebase only.

Taught by Sagnik Bhattacharya and Paulina Knop

The Complete Flutter Course: Build Android, iOS and Web Apps: Sagnik Bhattacharya and Paulina Knop

What you will be able to do

You will be able to:

  • Connect a Flutter app to Firebase for Android, iOS and the web with the FlutterFire CLI.
  • Store data as collections of documents in Cloud Firestore and read it back with get.
  • Write Firestore security rules that decide who may read or write each collection.
  • Register and log users in with email and password or Google through Firebase Authentication.
  • Save each signed-in user's records in Cloud Firestore apart from everyone else's.

Projects

What you will build.

The course has nine projects. These two matter most here.

  • Project 04

    Portfolio website and app

    A blog read from Cloud Firestore and contact messages saved to it, behind rules that let the app write one collection and only read the other.

  • Project 08

    Budget app

    Firebase sign-in, with each user's records saved under their own account.

Lessons

The lessons that matter, in course order.

The Complete Flutter Course: Build Android, iOS and Web Apps has 223 lessons. This page picks out 16 of them, 1 h 26 min of video. Each lesson keeps its number in the course.

Where to start

Lesson 123 Connect Firebase with the FlutterFire CLI

Begin at Lesson 123, which connects the portfolio built from Lesson 47 to Firebase. The sign-in lessons from Lesson 171 follow the budget app's own Firebase set-up at Lesson 169, so watch that first if you build along.

16 of 223 lessons · 1 h 26 min

15 Flutter Firebase setup for Android, iOS, and web 1 of 4 lessons · 9 min Firebase connected with the FlutterFire CLI: a Firebase project, a Firestore database in test mode and flutterfire configure for three platforms.
  1. 123 Start here Connect Firebase with the FlutterFire CLI Current method: flutterfire configure for Android, iOS and web 9 min
16 Read data from Firebase using Flutter: Blog Page 2 of 6 lessons · 12 min An articles collection of documents with a title and a body, read once with get from initState.
  1. 127 Introduction to Cloud Firestore Create an articles collection with title and body fields 6 min
  2. 128 Read Firestore data once with get() QuerySnapshot, docs.forEach and a call from initState 5 min
18 Firebase security rules 3 of 4 lessons · 22 min Security rules on Firebase's servers: test mode's time limit, contact messages the app may add but not read, and articles it may read but not change.
  1. 139 Introduction to Firestore security rules The Rules tab, test mode's time limit and allow true or false 7 min
  2. 140 Security rules for contact messages A match statement that lets the app write messages, not read 4 min
  3. 141 Article rules and fixing the submit dialog Read-only articles; addResponse now returns true or false 11 min
22 Budget App using Flutter Riverpod and MVVM architecture 8 of 47 lessons · 35 min Registration and log-in by email through Firebase Authentication, error pop-ups, and Google Sign-In for the web and phones, whose package has since changed how sign-in starts.
  1. 171 Rows and user registration Why a Row re-centres the Column, then registering by email 4 min
  2. 172 Error pop-ups An AlertDialog that shows Firebase's error messages 7 min
  3. 173 Cleaning error messages with RegExp Strip the bracketed code from Firebase errors with replaceAll 4 min
  4. 174 Creating the log-in button An OR label, then signInWithEmailAndPassword and its errors 6 min
  5. 175 Registering and logging in to the app Test both buttons on Chrome after an emulator network bug 4 min
  6. 176 Creating the Google Sign-In button The sign_button package and kIsWeb to pick web or mobile 3 min
  7. 177 Google Sign-In functions for web and mobile A pop-up on the web and the google_sign_in package on phones 5 min
  8. 178 Connecting Google Sign-In to Firebase Auth Turn Google tokens into a credential for signInWithCredential 2 min
22 Budget App using Flutter Riverpod and MVVM architecture 2 of 47 lessons · 8 min A reference to the users collection, then each user's expenses saved to a collection of their own.
  1. 198 A reference to the users collection A CollectionReference so later code stays short 1 min
  2. 199 Saving expenses to Cloud Firestore A per-user expenses collection, error dialog and test entry 7 min

Instructors

Who teaches it.

Paulina Knop smiling, shoulder-length brown hair, wearing a black top.

Instructor, Flutter

Paulina Knop

Flutter developer and curriculum designer. Teaches the Flutter course.

Questions

Asked before starting.

Should my Flutter app use Firebase or Supabase?

Both serve a first app well, so decide by your data and your plans for it. Firebase suits data that fits documents and people happy to build on Google's service; Supabase suits data with many relations, people who know SQL or want to, and anyone who may host the back end themselves one day. The Complete Flutter Course: Build Android, iOS and Web Apps from Coding Liquids builds its apps on Firebase, and this guide picks out 16 lessons (1 hour 26 minutes) that show how.

What changes in practice between Firestore's documents and Supabase's Postgres tables?

How you shape and query data. Firestore keeps documents in collections with no fixed schema, so you add fields as you go and plan your reads around how the data is stored. Supabase gives you Postgres tables with columns, relations and SQL queries, and asks for a schema first. The Complete Flutter Course: Build Android, iOS and Web Apps teaches the document side: an articles collection at Lesson 127, read once with get at Lesson 128.

Does Supabase being open source matter for a Flutter project?

It matters if you may want to run the back end yourself or move it later: Supabase can be self-hosted on your own server, while Firebase runs only as Google's service. For a first app on either hosted service, the day-to-day Flutter work feels much the same. The Complete Flutter Course: Build Android, iOS and Web Apps uses Firebase throughout and does not cover running a back end of your own.

Which of the two is harder to move away from later?

Firebase, as a rule. Firestore's documents, its queries and its security rules are its own, so leaving means reshaping the data and rewriting the rules, while Supabase's data sits in a standard Postgres database you can take elsewhere. Either way, the app's code that reads and writes data has to change. The Complete Flutter Course: Build Android, iOS and Web Apps teaches only the Firebase side, from security rules to each user's records.

Which is gentler for a first sign-in and database?

It depends on what you already know. Firestore needs no schema up front, and its console lets you add or delete documents by hand while the app watches; Supabase feels natural if you think in SQL tables, and its access rules are written in SQL too. Both offer email and Google sign-in. In The Complete Flutter Course: Build Android, iOS and Web Apps, the budget app registers users by email at Lesson 171 and adds Google Sign-In from Lesson 176.

Will I use Supabase anywhere in this course?

No. The Complete Flutter Course: Build Android, iOS and Web Apps teaches Firebase only: no Supabase, no SQL or Postgres, no Cloud Functions and no back end you run yourself. What it covers is the Firebase route from end to end: the FlutterFire CLI, Cloud Firestore reads and writes, security rules, Firebase Hosting and sign-in with email and Google.

Is this a good course if I have settled on Firebase for my Flutter app?

Yes, if you want Firebase learnt inside real apps rather than one feature at a time. The Complete Flutter Course: Build Android, iOS and Web Apps connects Firebase with the FlutterFire CLI, streams a blog from Cloud Firestore, protects it with security rules and puts the site on Firebase Hosting, then builds a budget app with email and Google sign-in and records kept for each user. If you chose Supabase instead, its own Flutter library and docs are the place to start.

Flutter

See the whole course.

The Complete Flutter Course: Build Android, iOS and Web Apps: 25 hours of video in 223 lessons, built around 9 projects, with lifetime access, a Certificate of Completion and a 14-day money-back guarantee.