JoJo的个人博客

记录精彩的程序人生

目录
Flutter手势识别
/  

Flutter手势识别

记录下GestureDetector的几个手势处理事件

GestureDetector(
  onTap: () => print('点击'),
  onDoubleTap: () => print('双击'),
  onLongPress: () => print('长按'),
  onTapCancel: () => print('取消'),
  onTapUp: (e) => print('松开'),
  onTapDown: (e) => print('按下'),
  onPanUpdate: (e) => print('move  x ${e.delta.dx}  y ${e.delta.dy}'),
  child:,
),


标题:Flutter手势识别
作者:SunnySky
地址:https://www.tianyang.pub/articles/2020/06/22/1592808989301.html

评论