admin管理员组文章数量:1406052
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.
本文标签: flutter android back gesture swipe direction detectionStack Overflow
版权声明:本文标题:flutter android back gesture swipe direction detection - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744959055a2634540.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论