this.onSecondaryTapUp,
this.onSecondaryTapCancel,
this.onDoubleTap, // 双击
this.onLongPress, // 长按..., 就是监听哪个组件的手势事件 ;
// 手势检测组件
GestureDetector(
// 点击事件
onTap: (){
print("双击");
},
// 双击事件...;
onTapCancel : 点击事件取消 , 一个完整的点击事件由按下 , 抬起 组成 , 如果按下后一直没有松开 , 就变成了长按操作 , 此时单击事件自动取消 ; 如果按下后滑出了 child..."),
// 返回按钮设置
leading: GestureDetector(
// 点击事件回调函数
onTap...(){
// 退出当前界面
Navigator.pop(context);
},
// 回退按钮图标