Update SelectionGestureDetectorBuilder.build method

pull/573/head
X Code 3 years ago
parent 6b2b2aa578
commit 0c43c8afcb
  1. 4
      lib/src/widgets/delegate.dart
  2. 4
      lib/src/widgets/editor.dart

@ -288,8 +288,10 @@ class EditorTextSelectionGestureDetectorBuilder {
/// the handlers provided by this builder. /// the handlers provided by this builder.
/// ///
/// The [child] or its subtree should contain [EditableText]. /// The [child] or its subtree should contain [EditableText].
Widget build(HitTestBehavior behavior, Widget child) { Widget build(
{required HitTestBehavior behavior, required Widget child, Key? key}) {
return EditorTextSelectionGestureDetector( return EditorTextSelectionGestureDetector(
key: key,
onTapDown: onTapDown, onTapDown: onTapDown,
onForcePressStart: onForcePressStart:
delegate.getForcePressEnabled() ? onForcePressStart : null, delegate.getForcePressEnabled() ? onForcePressStart : null,

@ -436,8 +436,8 @@ class _QuillEditorState extends State<QuillEditor>
); );
return _selectionGestureDetectorBuilder.build( return _selectionGestureDetectorBuilder.build(
HitTestBehavior.translucent, behavior: HitTestBehavior.translucent,
child, child: child,
); );
} }

Loading…
Cancel
Save