Open shinriyo opened 4 years ago
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
@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,
);
Can it use with
onGenerateRoute
?