@@ -448,7 +448,7 @@ class _QuillEditorSelectionGestureDetectorBuilder
448448 }
449449 }
450450
451- bool _isPositionSelected (TapDragUpDetails details) {
451+ bool _isPositionSelected (TapUpDetails details) {
452452 if (_state.controller.document.isEmpty ()) {
453453 return false ;
454454 }
@@ -471,7 +471,7 @@ class _QuillEditorSelectionGestureDetectorBuilder
471471 }
472472
473473 @override
474- void onTapDown (TapDragDownDetails details) {
474+ void onTapDown (TapDownDetails details) {
475475 if (_state.configurations.onTapDown != null ) {
476476 if (renderEditor != null &&
477477 _state.configurations.onTapDown !(
@@ -492,7 +492,7 @@ class _QuillEditorSelectionGestureDetectorBuilder
492492 }
493493
494494 @override
495- void onSingleTapUp (TapDragUpDetails details) {
495+ void onSingleTapUp (TapUpDetails details) {
496496 if (_state.configurations.onTapUp != null &&
497497 renderEditor != null &&
498498 _state.configurations.onTapUp !(
@@ -671,7 +671,6 @@ class RenderEditor extends RenderEditableContainerBox
671671 Document document;
672672 TextSelection selection;
673673 bool _hasFocus = false ;
674- bool get hasFocus => _hasFocus;
675674 LayerLink _startHandleLayerLink;
676675 LayerLink _endHandleLayerLink;
677676
@@ -878,28 +877,20 @@ class RenderEditor extends RenderEditableContainerBox
878877 }
879878
880879 Offset ? _lastTapDownPosition;
881- Offset ? _lastSecondaryTapDownPosition;
882-
883- Offset ? get lastSecondaryTapDownPosition => _lastSecondaryTapDownPosition;
884880
885881 // Used on Desktop (mouse and keyboard enabled platforms) as base offset
886882 // for extending selection, either with combination of `Shift` + Click or
887883 // by dragging
888884 TextSelection ? _extendSelectionOrigin;
889885
890- void handleSecondaryTapDown (TapDownDetails details) {
891- _lastTapDownPosition = details.globalPosition;
892- _lastSecondaryTapDownPosition = details.globalPosition;
893- }
894-
895886 @override
896887 void handleTapDown (TapDownDetails details) {
897888 _lastTapDownPosition = details.globalPosition;
898889 }
899890
900891 bool _isDragging = false ;
901892
902- void handleDragStart (TapDragStartDetails details) {
893+ void handleDragStart (DragStartDetails details) {
903894 _isDragging = true ;
904895
905896 final newSelection = selectPositionAt (
@@ -912,7 +903,7 @@ class RenderEditor extends RenderEditableContainerBox
912903 _extendSelectionOrigin = newSelection;
913904 }
914905
915- void handleDragEnd (TapDragEndDetails details) {
906+ void handleDragEnd (DragEndDetails details) {
916907 _isDragging = false ;
917908 onSelectionCompleted ();
918909 }
0 commit comments