简体   繁体   中英

Should I use bloc for the firebase authentication in flutter?

I am working on a flutter mobile app and I am wondering if I will need the bloc state management for the authentication. So this is the scenario of the app. The initial screen is login and registration form when the user login the home page will appear when the user logout, the login and registration form will appear and so on.

I need to know if the bloc is needed.

You don't need to use BLoC.

BLoC is one of many possibilities for state management in Flutter. The decision, which state management to choose, is independent of you use Firebase Authentication or not.

There is also

and many others.

Firebase authentication works with all of them. Also, you don't need any additional library to use Firebase Authentication.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM