I have specific situation.
I have splash screen page, when I go want to next page, but when user will press back button it will not go back to splash screen but to other page.
Splash Page -> Third page
Back schema:
Third page -> Second page -> Quit app
When user is in this Third page
, I want to go back to Second page
.
It is possible without using named routes?
2
Answers
You can use the Navigator widget’s
pushAndRemoveUntil
method for solve this issue.Look at below full code example ,