Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Named routes #2

Open
billymahmood opened this issue Aug 21, 2019 · 1 comment
Open

Named routes #2

billymahmood opened this issue Aug 21, 2019 · 1 comment

Comments

@billymahmood
Copy link

Hi amazing work, I just wanted to know if it's possible to use this code with named routes?

Thank you.

@LtotheWT
Copy link

LtotheWT commented Oct 26, 2019

onGenerateRoute: (RouteSettings settings){
switch(settings.name){
case SecondPage.routeName:
Map<String, dynamic> args = settings.arguments;
return EnterExitRoute(exitPage: FirstPage(), enterPage: SecondPage(param: args["param"],));
case ThirdPage.routeName:
return EnterExitRoute(exitPage: SecondPage(), enterPage: ThirdPage());
}
return null;
},
cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants