English 中文(简体)
如何进行自定义转换, 并保持 ios swipe 后退
原标题:How to make custom transition and keep the ios swipe back
  • 时间:2020-05-12 09:38:35
  •  标签:
  • flutter
I made a customRoute that extends MaterialPageRoute, and I override the buildTransitions to do different transition in different situation class MyCustomRoute extends MaterialPageRoute { final Widget Function( BuildContext, Animation, Animation, Widget) transitionsBuilder; MyCustomRoute( {WidgetBuilder builder, RouteSettings settings, this.transitionsBuilder}) : super(builder: builder, settings: settings); @override Widget buildTransitions(BuildContext context, Animation animation, Animation secondaryAnimation, Widget child) { return transitionsBuilder(context, animation, secondaryAnimation, child); } } it works fine but the swipe back feature in ios is gone, I want to know how to make custom transition and keep the ios swipe back
最佳回答
I found a solution at here, hope this will help someone https://juejin.im/post/5d3ea81af265da03f04ca5d9#heading-4
问题回答

暂无回答




相关问题
Flutter App cannot be installed on Android TV

I m building a Flutter app that should support Android TV and Mobile devices. Despite Google Play shows that it is supported, I cannot install app on my MiBox device. While trying to install it, both ...

Moving the icon button to the right causes rendering issues

I am trying to align the icon button to the right of the Text field, I tried the row which made the icon button not centered vertically and now I am trying out the Stack widget. Here is my code - ...

热门标签