[英]How to solve Swipe back not working on iOS
each time i use a plugin to move to the next page on iOS the swipe back will not work like每次我使用插件移动到 iOS 上的下一页时,向后滑动将无法正常工作
Navigator.push(
context,
Transition(
child: Bio(),
transitionEffect: TransitionEffect.BOTTOM_TO_TOP),
);
i have use like 5 plugin now swipe back is not working我用过 5 个插件现在向后滑动不起作用
but if i use this但如果我用这个
Navigator.pop(context);
Navigator.push(
context,
MaterialPageRoute(
builder: (ctx) => Actitvities(),
),
);
the swipe back works.... but i want to use transition for the page route向后滑动有效....但我想对页面路由使用过渡
in my case.就我而言。 i was using a plugin and the plugin is using
我正在使用一个插件并且该插件正在使用
WillPopScope (
onWillPop: () async {
},
so i fork the plugin and remove the willpopscope.所以我 fork 插件并删除了 willpopscope。 then i add the fork plugin like this to my pubspeck
然后我将这样的 fork 插件添加到我的 pubspeck
kittens:
git:
url: git://github.com/munificent/kittens.git
ref: some-branch
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.