[英]Implementing long press on tab bar in flutter
I am new to flutter.我是新来的。 I want to implement long press event on tab bar.
我想在标签栏上实现长按事件。 can somebody help me with this ?
有人可以帮我吗? A general idea of how to implement long press event on tabs of the tab bar.
关于如何在标签栏的标签上实现长按事件的总体思路。
You can use 'GestureDetector' widget with 'onLongPress' property.您可以使用带有“onLongPress”属性的“GestureDetector”小部件。
More information: https://api.flutter.dev/flutter/widgets/GestureDetector/onLongPress.html更多信息: https ://api.flutter.dev/flutter/widgets/GestureDetector/onLongPress.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.