PiN73/cupertino_back_gesture

with onGenerateRoute

Opened this issue · 2 comments

Can it use with onGenerateRoute?

PiN73 commented

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,
    );