I want to develop a logout button that will send me to the log in route and remove all other routes from the Navigator
. The documentation doesn\'t seem to explain h
In case you want to go back to the particular screen and you don't use named router can use the next approach
Example:
Navigator.pushAndRemoveUntil(context,
MaterialPageRoute(builder: (BuildContext context) => SingleShowPage()),
(Route route) => route is HomePage
);
With route is HomePage you check the name of your widget.