English 中文(简体)
go_router - how to push a page over existing pages in stack (in any path)
原标题:

I use go_router for navigation handling in my project. I have an invoice page, and I want to show this page after payment is done over existing pages on navigation stack.

For example, if the user is in /detail/book, /profile/job, or whatever path, I want to push that invoice page over all of my route paths with a back button on it to get back to the previous page.

I tried doing this manually with Navigator 2, but I don t know how to do it with Go Router.

问题回答

Per the go_router documentation context.go( route ) navigates to route by replacing stack of views context.push( route ) navigates to route by adding view to the stack which can be removed by the back button you want with context.pop()





相关问题
combining flipsideview and navigationview

when i am trying to combine flipsideview and navigation view i am getting following error "request for member delegate is something not in a structure or union" on the line controller.delegate = ...

Rails category navigation with tags

I want to create a navigation system for my web application where there are several main categories for articles and several sub tags for each category. For example, in category "Writing" there might ...

Wordpress Navigation

I am working on a Wordpress Theme, I need to work on the navigation, I am having a little trouble creating it. The navigation I am looking for looks like this: www.neu.edu/humanities. I have gotten ...

Silverlight cant find page error

I have started a a new project (to refactor some code), and just can t work out why I keep getting "Can t find page /Index" error. The code works fine until I use an add method (on any collection ...

Zend Framework - multiplate navigation blocks

I want to use the navigation helper to build my navigation menus using Acl. The Acl part I have working fine. I now want to be able to display a few different types of navigation. E.g. admin-nav, ...

Creating a Web Navigation Helper Class for MVC

Im a newbie to MVC and trying to use the web navigator class in my MVC application. http://polymorphicpodcast.com/shows/webnavigator/ The class enables us to have stongly typed urls in a central class ...

热门标签