fix deprecated

pull/418/head
li3317 4 years ago
parent 1143f7eb43
commit 6f32b0eda8
  1. 6
      lib/src/widgets/text_selection.dart

@ -732,7 +732,8 @@ class _EditorTextSelectionGestureDetectorState
gestures[LongPressGestureRecognizer] =
GestureRecognizerFactoryWithHandlers<LongPressGestureRecognizer>(
() => LongPressGestureRecognizer(
debugOwner: this, kind: PointerDeviceKind.touch),
debugOwner: this,
supportedDevices: <PointerDeviceKind>{PointerDeviceKind.touch}),
(instance) {
instance
..onLongPressStart = _handleLongPressStart
@ -748,7 +749,8 @@ class _EditorTextSelectionGestureDetectorState
gestures[HorizontalDragGestureRecognizer] =
GestureRecognizerFactoryWithHandlers<HorizontalDragGestureRecognizer>(
() => HorizontalDragGestureRecognizer(
debugOwner: this, kind: PointerDeviceKind.mouse),
debugOwner: this,
supportedDevices: <PointerDeviceKind>{PointerDeviceKind.mouse}),
(instance) {
instance
..dragStartBehavior = DragStartBehavior.down

Loading…
Cancel
Save