Replies: 1 comment 1 reply
-
@eznibe try the following.. CustomRoute(
page: HomeRoute.page,
path: '/home',
customRouteBuilder: (context, child, page) {
return DialogRoute(
context: context,
builder: page.buildPage,
settings: page, // this's important
);
},
children: ... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I would like to have an AutoRouter in the content of a dialog displayed with showDialog but I can't make it work and I can't find an example of something similar.
I'll provide more details in case some can help me with this request.
For example, on init the route /test will render some text and I'll use showDialog to open a Material dialog, the content of it should have an AutoRouter where I'd like to define the nested navigation inside that dialog.
eg. /test/subpath1 and /test/subpath2 pages should be displayed inside my already opened dialog. The idea is to navigate to those subpaths and only refresh teh content of the dialog without changing anything in the background. Without closing and reopening the dialog.
Any idea on how to do that?
Beta Was this translation helpful? Give feedback.
All reactions