Opened this issue 4 years ago · 2 comments
Can it use with onGenerateRoute?
onGenerateRoute
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
MaterialApp
MaterialPageRoute
@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, );