Skip to content

Advanced Provider Architecture Demo: Image Picker + Firebase Storage Upload

License

Notifications You must be signed in to change notification settings

bizz84/firebase_user_avatar_flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advanced Provider Architecture Demo: Image Picker + Firebase Storage Upload

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:

Advanced Provider Tutorial - Part 1: Project Setup & Authentication Flow

To get started with this tutorial, checkout the initial-setup branch.

Then, follow the steps in Firebase Configuration.

Video tutorial here:

Advanced Provider Tutorial - Part 1: Project Setup & Authentication Flow

Advanced Provider Tutorial - Part 2: MultiProvider, Multiple Services & Stream Dependencies

To continue from the end of the previous tutorial, checkout the authentication-complete branch.

Video tutorial here:

Advanced Provider Tutorial - Part 2: MultiProvider, Multiple Services & Stream Dependencies

Advanced Provider Tutorial - Part 3: Dependencies Between Providers

To continue from the end of the previous tutorial, checkout the working-implementation branch.

Video tutorial here:

Advanced Provider Tutorial - Part 3: Better APIs, Navigation, Widget Rebuilds

The final, completed project is available on the optimized-implementation branch.

Firebase Configuration

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_flutter as the package name (adding a SHA-1 certificate fingerprint is not needed for this project).
  • then, download and copy google-services.json into android/app.
  • On iOS, use com.example.firebaseUserAvatarFlutter as the bundle ID.
  • then, download and copy GoogleService-Info.plist into iOS/Runner, and add it to the Runner target in Xcode.

See this document for full instructions:

Additional References

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):

About

Advanced Provider Architecture Demo: Image Picker + Firebase Storage Upload

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published