GestureDetector(
child: ,
onLongPressStart: (details) {
Feedback.forLongPress(this.context); // Add Feedback
showMenu(
context: context,
position: RelativeRect.fromLTRB(
details.globalPosition.dx,
details.globalPosition.dy,
details.globalPosition.dx,
details.globalPosition.dy,
),
items: <PopupMenuEntry>[
PopupMenuItem(child: Text("删除")), // Menu Item
],
);
},
);
版权属于:wshon
本文链接:https://blog.wshon.com/2021/06/605.html
转载时须注明出处及本声明
最新回复