I am currently using showGeneralDialog to present a dialog popup like this:
This is all fine and good, but it happens at the root Navigator level, and I would rather have all my views as a Go Router route so that I can control their presentation in the same way throughout my app.
How can I use something like showGeneralDialog upon calling a route?
GoRoute(
path: '/settings',
pageBuilder: (context, state) {
return ???;
},
),

Had the same question, found https://croxx5f.hashnode.dev/adding-modal-routes-to-your-gorouter which works well enough for me. Extended its builder by wrapping it in a
Dialog.This is what it looks like for me in the end:
and used like this: