Skip to content

alperefesahin/cubit_login

Repository files navigation

cubit_login

A Flutter project which is created by Cubit/BLoC and Firebase. The differ from the other bloc login projects, this project has social login instances and sign up properties, and while It does this, It uses freezed package which is very helpful for the state management. Also there are snackbars for the error handling, and login processes. For instance If you try to sign up with existing account, snackbar will give an error. Additionally, thanks to flow_builder package, we can check via state, is user signed in or not, and with this, we can route the user. If you have already logged in, home page will start, but if you are not, then you will start sign in page.

Here you can reach the medium article of the project:

Part1: https://medium.com/@sahinefe/bloc-pattern-for-login-bloc-login-in-flutter-551fd05beb99

Part2: https://medium.com/@sahinefe/cubit-freezed-combination-to-manage-the-state-powerfully-in-flutter-2022-version-e64339e7c641

Updates

-->Cubits re-created with Freezed package.

-->Exceptions, and snackbars have added.

-->Re-password feature has added.

-->CPU improvements (now, faster than before!)

Packages

*flutter_bloc

*freezed_annotation

*flow_builder

*formz

*firebase_core

*firebase_auth

*cloud_firestore

Mini Notes

If you want to use Apple sign in and Twitter sign in methods, you need to configure them from firestore. Twitter and Apple must give developer permits to you.

Gifs and Screenshots from the app

sign_up login google reset

link link2 link3