Open chinachance opened 6 months ago
@chinachance 这里是手势竞争冲突的问题,在最外层套下这个试下MediaQuery(
data: MediaQueryData.fromView(View.of(context))
.copyWith(gestureSettings: const DeviceGestureSettings(touchSlop: 8.15)),
child: child;)
touchSlop 默认是18像素,把这个值降低试试。
您好,我使用了您写的组件,给我带来了非常大的帮助,但是我碰到一个问题,困扰我一个月还没解决,就是我使用SelectableText,长按无法复制,因为我是小白,我试过在book_fx中监听长按事件
onLongPressStart: (detail) { widget.longPressCallBack?.call(widget.controller.currentIndex,detail); }, onLongPressMoveUpdate: (d) { widget.longPressMoveUpdateCallBack?.call(widget.controller.currentIndex,d); }, onLongPressEnd: (d) { widget.longPressEndCallBack?.call(widget.controller.currentIndex,d); },
但是我最终还是无法实现,我想问一下作者是否有可行性的方案