Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

How to pop a page or multiple pages programatically. #124

Answered by csells
mjmon asked this question in Q&A
Discussion options

You must be logged in to vote

You can use Navigator.pop() as usual when using go_router. However, instead of using popUntil() I recommend just using context.go() or context.goNamed(), which will build the stack of pages for you with the location/name you specify.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@mjmon
Comment options

@jamesblasco
Comment options

@csells
Comment options

Answer selected by csells
Comment options

You must be logged in to vote
1 reply
@mjmon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #123 on November 01, 2021 15:22.