Skip to content

Instantly share code, notes, and snippets.

@jaceshim
Created June 16, 2020 16:12
Show Gist options
  • Save jaceshim/137faf558ebd100667ef1cc8c5987586 to your computer and use it in GitHub Desktop.
Save jaceshim/137faf558ebd100667ef1cc8c5987586 to your computer and use it in GitHub Desktop.
clear all route and go page in flutter
Navigator.of(context).pushAndRemoveUntil(
MaterialPageRoute(builder: (BuildContext context) => PageWidget()),
(Route<dynamic> route) => false,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment