This repository was archived by the owner on Feb 25, 2022. It is now read-only.
Can not insert a widget below MaterialApp and above go_router's Navigator #321
Unanswered
whollacsek
asked this question in
Q&A
Replies: 1 comment 9 replies
-
|
This is the expected behavior, since you've explicitly chosen to add content about the go_router-provided |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @csells, according to the docs https://gorouter.dev/navigator-builder
However I ran into an issue where I provided a wrapper widget to
navigatorBuilderwhile defining my go_router instance, but this wrapper widget does not have access to the MaterialApp context. In this widget I'm callingshowModalBottomSheetwhich throws:My go_router instance is defined as:
And the
MyWrapperWidgetdisplays on all routes a button that when clicked should show a bottom sheet modal.How can I have a wrapper around all pages that can access the Navigator from MaterialApp?
Beta Was this translation helpful? Give feedback.
All reactions