Flutter & Firebase: Authentication Service with Provider & ValueNotifier

Опубликовано: 22 Март 2026
на канале: Andrea Bizzotto
21,978
307

Sign up here for more videos: https://codewithandrea.com

GitHub code for this project: https://github.com/bizz84/firebase_au...

This video is a detailed overview of the authentication code in my Reference Authentication Flow with Flutter & Firebase.

HIGHLIGHTS

00:00 - Intro
00:46 - Abstract AuthService
01:44 - Concrete FirebaseAuthService implementation
02:26 - Abstracting away the FirebaseUser type
04:14 - Using the AuthService with Provider
05:49 - Using a mock authentication service
07:39 - Switching auth service at runtime with an adapter class and ValueNotifier
09:56 - UI for toggling the auth service (with ValueListenableBuilder)
11:44 - Wrap up

Want more? Check out all my Flutter courses: 👇👇
https://codewithandrea.com/courses/

Thanks for watching!