From 6f32b0eda85a102f9e5e579bca72d33b89761326 Mon Sep 17 00:00:00 2001 From: li3317 Date: Thu, 16 Sep 2021 18:57:46 -0400 Subject: [PATCH] fix deprecated --- lib/src/widgets/text_selection.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/widgets/text_selection.dart b/lib/src/widgets/text_selection.dart index 833a21e9..16374789 100644 --- a/lib/src/widgets/text_selection.dart +++ b/lib/src/widgets/text_selection.dart @@ -732,7 +732,8 @@ class _EditorTextSelectionGestureDetectorState gestures[LongPressGestureRecognizer] = GestureRecognizerFactoryWithHandlers( () => LongPressGestureRecognizer( - debugOwner: this, kind: PointerDeviceKind.touch), + debugOwner: this, + supportedDevices: {PointerDeviceKind.touch}), (instance) { instance ..onLongPressStart = _handleLongPressStart @@ -748,7 +749,8 @@ class _EditorTextSelectionGestureDetectorState gestures[HorizontalDragGestureRecognizer] = GestureRecognizerFactoryWithHandlers( () => HorizontalDragGestureRecognizer( - debugOwner: this, kind: PointerDeviceKind.mouse), + debugOwner: this, + supportedDevices: {PointerDeviceKind.mouse}), (instance) { instance ..dragStartBehavior = DragStartBehavior.down