Bloc: Need Help on MaterialApp routes with bloc

Created on 19 Feb 2020  路  6Comments  路  Source: felangel/bloc

Kindly help me out how can a pass the parameter to HomeScreen when the state is Authenticated.
Its the same code as Login With Firebase, just need to make it with MaterialApp routes.

image

documentation example question

All 6 comments

Kindly help me out how can a pass the parameter to HomeScreen when the state is Authenticated.

Hi! Just check the tutorials, described below:
Reso Coder: https://www.youtube.com/watch?v=nyvwx7o277U&t=195s
Dane Mackier : https://medium.com/flutter-community/flutter-navigation-cheatsheet-a-guide-to-named-routing-dc642702b98c
Hope this helps!

The given tutorial is just about Navigation i need with Flutter Bloc.

Hi @Sandesh-Solabannavar 馃憢
Thanks for opening an issue!

Have you taken a look at the bloc access recipe?

i found only how to go from one page to other.
i need help to declare the routes for MaretialApp.

What do you think about use onGenerateRoute create base class which will handle it. Through DI add AuthenticationBloc and use it within this class?

Added the following recipes

Hope that helps! 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abinvp picture abinvp  路  3Comments

MahdiPishguy picture MahdiPishguy  路  3Comments

frankrod picture frankrod  路  3Comments

Reidond picture Reidond  路  3Comments

krusek picture krusek  路  3Comments