Back Stack & Deep Links
Control history and open routes from URLs.
What the Back Stack Is
The back stack is the history of screens you have visited. Each navigate call pushes a new entry on top of it.
Going Back
Calling popBackStack() removes the top entry and shows the screen beneath. The system back gesture does the same thing automatically.
navController.popBackStack()All lessons in this course
- NavController & NavHost
- Composable Destinations & Routes
- Passing Arguments Between Screens
- Back Stack & Deep Links