Sitelet https://web.archive.org/web/20210311192821/https://github.com/felangel/bloc/issues/2178
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(flutter_bloc): add recipe on how to use flutter _bloc together with Navigator 2.0 and Router #2178

Open
vinayluzrao opened this issue Feb 26, 2021 · 1 comment

Comments

@vinayluzrao
Copy link

@vinayluzrao vinayluzrao commented Feb 26, 2021

Is your feature request related to a problem? Please describe.
Navigator 2.0 and Router have been released and are now the recommended approach:

Currently, there is no recipe for this, there are only recipes for a Navigator-less approach and for the old 1.0 imperative approach:

https://bloclibrary.dev/#/recipesflutternavigation

Describe the solution you'd like
Document a recipe to support Navigator 2.0 and Router.

Additional context
About Navigator 2.0 and Router:

https://flutter.dev/docs/development/ui/navigation

https://medium.com/flutter/learning-flutters-new-navigation-and-routing-system-7c9068155ade

https://docs.google.com/document/d/1Q0jx0l4-xymph9O6zLaOY4d_f7YFpNWX_eGbzYxr9wY/edit#heading=h.iuyif5vot57

@felangel felangel added this to To do in bloc via automation Feb 27, 2021
@aliyazdi75
Copy link

@aliyazdi75 aliyazdi75 commented Mar 3, 2021 •

I implemented Navigation 2 with complicated structure pages in my project with ChangeNotifier.

It takes me so much time to fix some issues in that medium article.
So you can check my source codes here to save your times 😄

The outer router: https://github.com/aliyazdi75/gallery/blob/main/lib/presentation/routers/src/router.dart
The inner router: https://github.com/aliyazdi75/gallery/blob/main/lib/presentation/screens/gallery/router.dart
The router service which handles states: https://github.com/aliyazdi75/gallery/tree/main/services/routers_service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
bloc
  
To do
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants