Pop Until
The Pop Until action allows you to navigate backwards in the navigation stack until a specified route is reached. This is useful for returning to a particular page regardless of how deep the current navigation stack is.
Use Cases
Returning to the home screen or a main dashboard from several layers deep.
Closing multiple intermediate pages in a single action.
Resetting navigation to a known state.
Properties
routeNameToPopUntil
(Required) The name of the route to pop back to. The navigation stack will be popped until this route is found and displayed.
Default Behavior
The navigation stack is popped repeatedly until the specified route is at the top.
If the route is not found in the stack, the behavior depends on the platform or framework (usually nothing happens).
How to Use
Attach the action to a widget event (e.g., button click).
Select Pop Until from the action list.
Provide the exact name of the route you want to pop back to.
Last updated