-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
question: passing bloc/cubit in sub route using gorouter #4380
Comments
Hi there ! I believe you are looking for the shell route feature of Go Router https://pub.dev/documentation/go_router/latest/go_router/ShellRoute-class.html
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I have a question about go_router and Bloc/Cubit.
I have example route structure
How can I insert MultiBlocProvider in a route and get context in a sub-route? go_router creates a new path and context in the sub-route, but I am referring to app/main.
For example, somewhere in the routing, I create a MultiBlocProvider and initialize new blocs that I want to be closed when leaving this route. However, I also want the context to be passed down to the sub-routes.
The text was updated successfully, but these errors were encountered: