PiN73 / cupertino_back_gesture

Flutter package to set custom width of iOS back swipe gesture area
BSD 3-Clause "New" or "Revised" License
30 stars 17 forks source link

with onGenerateRoute #2

Open shinriyo opened 4 years ago

shinriyo commented 4 years ago

Can it use with onGenerateRoute?

PiN73 commented 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

shinriyo commented 4 years ago

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