This project shows how to capture, upload and show an avatar image, while supporting multiple user accounts with Firebase.
It serves as the foundation for the following tutorials on Provider architecture:
To get started with this tutorial, checkout the initial-setup branch.
Then, follow the steps in Firebase Configuration.
Video tutorial here:
To continue from the end of the previous tutorial, checkout the authentication-complete branch.
Video tutorial here:
To continue from the end of the previous tutorial, checkout the working-implementation branch.
Video tutorial here:
The final, completed project is available on the optimized-implementation branch.
To use this project with Firebase authentication, some configuration steps are required.
- Create a new project with the Firebase console.
- Add iOS and Android apps in the Firebase project settings.
- On Android, use
com.example.firebase_user_avatar_flutteras the package name (adding a SHA-1 certificate fingerprint is not needed for this project). - then, download and copy
google-services.jsonintoandroid/app. - On iOS, use
com.example.firebaseUserAvatarFlutteras the bundle ID. - then, download and copy
GoogleService-Info.plistintoiOS/Runner, and add it to the Runner target in Xcode.
See this document for full instructions:
A lot of the techniques used in this project are explained in great detail, and implemented step-by-step in my Flutter & Firebase Udemy course.
This is available for early access at this link (discount code included):