flutter android back gesture swipe direction detection - Stack Overflow

Our flutter application deploys to both Android and iPhone. On Android the (predictive) back gesture ca

Our flutter application deploys to both Android and iPhone. On Android the (predictive) back gesture can be triggered by swiping from either the left or right edge of the phone towards the other side.

In my flutter app, I would like to know which direction the user swiped in order to initiate the back gesture. Is this possible? How?

For additional context, whether it's a good user experience or not, the reason I'm looking for the swipe direction is because the business has decided they want to allow the back gesture if it is initiated from one of the edges, but disallow it if initiated from the other edge. So I'm wanting to access the gesture swipe direction from within the PopScope widget's onPopInvokedWithResult method.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744959056a4603377.html

相关推荐

  • flutter android back gesture swipe direction detection - Stack Overflow

    Our flutter application deploys to both Android and iPhone. On Android the (predictive) back gesture ca

    2天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信