π― Goal:
Enable users to log in with their Google accounts using Firebase Authentication.
This feature improves user experience by allowing quick, password-free access, especially on mobile.
β
Tasks
π¦ Required Packages
firebase_auth: ^latest
google_sign_in: ^latest
π― Goal:
Enable users to log in with their Google accounts using Firebase Authentication.
This feature improves user experience by allowing quick, password-free access, especially on mobile.
β Tasks
π Integrate
google_sign_inpackageAdd
google_sign_inandfirebase_authtopubspec.yamland install the dependencies.π§ Configure Firebase project
π§© Update
AuthRepositoryAdd
signInWithGoogle()method that usesGoogleSignInandFirebaseAuth.βοΈ Update
AuthBlocAdd a new event:
SignInWithGoogleRequestedHandle it by calling the new repository method and emit states accordingly.
π― Update
SignInPageUIAdd a Google Sign-In button
On tap β dispatch
SignInWithGoogleRequestedtoAuthBlocπ Support iOS configuration if needed (
GoogleService-Info.plist, reversed client ID, URL schemes)π¦ Required Packages