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

with onGenerateRoute #2

Open
shinriyo opened this issue Apr 21, 2020 · 2 comments
Open

with onGenerateRoute #2

shinriyo opened this issue Apr 21, 2020 · 2 comments

Comments

@shinriyo
Copy link

shinriyo commented Apr 21, 2020

Can it use with onGenerateRoute?

@PiN73
Copy link
Owner

PiN73 commented May 4, 2020

If you are using MaterialApp as root widget and MaterialPageRoute in onGenerateRoute, it will work properly. If your use case is different, let me know

@shinriyo
Copy link
Author

shinriyo commented May 4, 2020

@PiN73
Thank you.
It doesn't work. but, MaterialPageRoute works.

    return CupertinoPageRoute<WidgetBuilder>(
   // return MaterialPageRoute<WidgetBuilder>( // => it works
      builder: (context) => _contents(context, builder),
      settings: settings,
    );

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