Flutter • Firebase • BLoC Tutorial #8 - Authentication Screen

preview_player
Показать описание
Hello, in this Flutter & Firebase tutorial series, we'll build a complete app with a database (Firebase Firestore) and an authentication system (using Firebase auth).
------------------------------

Subscribe !!
Рекомендации по теме
Комментарии
Автор

Great Tutorial, a bit tough for beginners because of the copy pasta, but the flow is very very solid.
Love it!

KwakuTabiriNow
Автор

Great tutorial! this series is helping me a lot.
Im having an issue, when I register the user everything works fine on the sign up but the screen doesn't return to the homepage (when I restart the app it works), this just happens when I use routes, the blocBuilder return the login page when not logged and from the login page I navigate to the /register route.
Like this:

home: BlocBuilder<AuthenticationBloc, AuthenticationState>(
builder: (context, state) {
if (state.status == {
return const Home();
} else {
return const LoginPage();
}
},
),

routes: {
// '/': (context) => const Home(),
'/login': (context) => const LoginPage(),
'/register': (context) => const RegisterPage(),
},

vitor
Автор

thank you very much for this content, I wish I could do a good job like you in future.
just a question, is there better way than using setstate (stateful W in general)?

jhosysb
Автор

thanks Romain great tutorial, I have a doubt why are you using the setstate to update the bool value, can we update the state without setstate (using bloc )? If yes how can we do that, i guess using setstate in code multipal time is not a good programming practice and thank you once again :)

fardinshaikh
Автор

Great tutorial....The prefix icon doesn't appear on my screen until i tap on it.

chikezirimokoro