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

Loading…
Cancel
Save