/flutter_firebase

A Flutter demo app to interact with various Firebase services

Primary LanguageDartThe UnlicenseUnlicense

The Flutter Firebase Compendium Demo Application

The Flutter Firebase Compendium

This is the companion app of the Flutter Firebase Compendium with code examples.

The Flutter Firebase Compendium is an article series published on Medium. It explains how to use Firebase services from a Flutter application.

I recommend buying my ebook. It contains a lot more details and will save you many hours of research time to develop your apps quicker.

Content

App screenshots

Firebase Authentication Firebase Cloud Firestore Firebase Cloud Functions

Firebase Storage Firebase Remote Config

How to run the code

The code uses Firebase as a backend but the Firebase configuration is not included. You have to add it yourself because there are paid features that might cause costs. Refer to this article above on how to perform the necessary steps in detail.

  1. Create a Firebase project
  2. Install Firebase CLI
  3. Install FlutterFire CLI
  4. Check out the code
  5. Execute firebase login from the app root folder and log into your created Firebase project
  6. Execute flutterfire configure from the app root folder and use your created Firebase project
  7. A file firebase_options.dart will be created in your lib folder
  8. (Cloud Functions only) Execute firebase deploy --only functions to deploy the demo functions
  9. (Storage and Cloud Firestore only) Set security rules for Storage and Firestore
  10. (App Check only) Register an attestation provider and enforce App Check
  11. (Remote Config only) Create parameters with conditions for Remote Config
  12. Run the app

Hints

Platforms

Overview of supported platforms of the used Firebase packages.

✔ - supported ❌ - not supported

Android iOS Web MacOS Windows Linux
Authentication
Firestore
Functions
Storage
App Check
Remote Config

Support

If you like this post or my work in general, feel free to support me in any way ❤