u/bizz84in r/FlutterDev • Recommends
Flutter & Firebase authentication with streams and StreamBuilder
#flutter#firebaseauthentication#streambuilder
41K subscribers • 17 videos on Hallway
Intermediate. Assumes working knowledge.
17K views7 years ago1 recommendation
Mobile developmentSoftware designFlutter and React NativeSoftware architecture
Andrea Bizzotto explains how to use Firebase auth state streams and StreamBuilder to simplify login flow logic in Flutter.
Sign up here for more videos: codewithandrea.com/ GitHub code for this project: github.com/bizz84/coding-with-flutter-login-demo (or to follow along step-by-step: github.com/bizz84/coding-with-flutter-login-demo/releases/ta…) This video is a continuation on my small series on how to build a login flow with Firebase. In this video I show how to use a special stream called onAuthStateChanged, and use it to simplify our widgets logic. This leads to a very elegant solution using StreamBuilder, which I highly recommend when using Firebase authentication. HIGHLIGHTS - Intro - Getting the latest code from GitHub - Overview of the project - FirebaseAuth.onAuthStateChanged explained - Updating the RootPage with StreamBuilder - Removing all the old code - Benefits of streams + StreamBuilder - Summary & wrap up This code was tested with Flutter stable 1.2. Want more? Check out all my Flutter courses: 👇👇 codewithandrea.com/courses/ Thanks for watching!u/bizz84in r/FlutterDev • Recommends