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

onGenerateRoute #86

Open
only2433 opened this issue Mar 15, 2024 · 2 comments
Open

onGenerateRoute #86

only2433 opened this issue Mar 15, 2024 · 2 comments

Comments

@only2433
Copy link

Using onGenerateRoute, I want to implement PageTransitionType.rightToLeftJoined.

@kalismeras61
Copy link
Owner

Using onGenerateRoute, I want to implement PageTransitionType.rightToLeftJoined.

onGenerateRoute: (settings) {
switch (settings.name) {
case '/second':
return PageTransition(child: SecondPage(), type: PageTransitionType.rightToLeftJoined);
break;
default:
return null;
}
},

@s4nk37
Copy link

s4nk37 commented Apr 1, 2024

Not working getting below error in onGenerateRoute switch statement.
The return type 'Object' isn't a 'Widget', as required by the closure's context.

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

3 participants