ModalRoute should give you the exact route name
ModalRoute.of(context).settings.name
if you use Navigator.popuntil.. check this other answer out by Rémi Rousselet https://stackoverflow.com/a/50817399/5921185
More Related Contents:
- flutter remove back button on appbar
- Force Flutter navigator to reload state when popping
- create a single html view for multiple partial views in angularjs
- Flutter: go_router how to pass multiple parameters to other screen?
- AngularJS routing without a web server
- Go_Router Pass Object to new route
- How to navigate to other page without animation Flutter
- How to change package name in flutter?
- Flutter setState to another class?
- Flutter: how to force an application restart (in production mode)?
- How To Override the “Back” button in Flutter? [duplicate]
- Could not GET ‘play-services-location/maven-metadata.xml’. Received status code 502 from server: Bad Gateway
- Flutter: Unhandled exception: MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)
- Flutter run error : You have not accepted the license agreements
- Playstore error: App Bundle contains native code, and you’ve not uploaded debug symbols
- How to render a local HTML file with flutter dart webview
- Enumerate or map through a list with index and value in Dart
- Flutter: Push notifications even if the app is closed
- How to show NavigationLink as a button in SwiftUI
- dart:ui:1: Error: Not found: dart:ui. flutter/dart:
- Android Studio not showing Logcat with Flutter
- There are multiple heroes that share the same tag within a subtree
- How to make button width match parent?
- How can I forward localhost port on my container to localhost on my host?
- Google map in Flutter not responding to touch events
- RoadManager for osmdroid error
- Outlined transparent button with gradient border in flutter
- Flutter – save file to download folder – downloads_path_provider
- How to set Custom height for Widget in GridView in Flutter?
- Flutter floating action button with speed dial