Skip to content

Commit 0c43c8a

Browse files
committed
Update SelectionGestureDetectorBuilder.build method
1 parent 6b2b2aa commit 0c43c8a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/src/widgets/delegate.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,10 @@ class EditorTextSelectionGestureDetectorBuilder {
288288
/// the handlers provided by this builder.
289289
///
290290
/// The [child] or its subtree should contain [EditableText].
291-
Widget build(HitTestBehavior behavior, Widget child) {
291+
Widget build(
292+
{required HitTestBehavior behavior, required Widget child, Key? key}) {
292293
return EditorTextSelectionGestureDetector(
294+
key: key,
293295
onTapDown: onTapDown,
294296
onForcePressStart:
295297
delegate.getForcePressEnabled() ? onForcePressStart : null,

lib/src/widgets/editor.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,8 @@ class _QuillEditorState extends State<QuillEditor>
436436
);
437437

438438
return _selectionGestureDetectorBuilder.build(
439-
HitTestBehavior.translucent,
440-
child,
439+
behavior: HitTestBehavior.translucent,
440+
child: child,
441441
);
442442
}
443443

0 commit comments

Comments
 (0)