Skip to content

Instantly share code, notes, and snippets.

@PeterHdd
Created May 26, 2021 19:31
Show Gist options
  • Save PeterHdd/30a6fa1efd46ff054496903ec5b7be55 to your computer and use it in GitHub Desktop.
Save PeterHdd/30a6fa1efd46ff054496903ec5b7be55 to your computer and use it in GitHub Desktop.
class Navigate {
static Map<String, Widget Function(BuildContext)> routes = {
'/' : (context) => WelcomePage(),
'/sign-in' : (context) => SignInPage(),
'/home' : (context) => HomePage()
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment