|
|
|
@ -324,15 +324,13 @@ class EditorTextSelectionGestureDetectorBuilder { |
|
|
|
|
@protected |
|
|
|
|
void onDragSelectionEnd(DragEndDetails details) { |
|
|
|
|
renderEditor!.handleDragEnd(details); |
|
|
|
|
if (isDesktop()) { |
|
|
|
|
if (isDesktop() && |
|
|
|
|
delegate.selectionEnabled && |
|
|
|
|
shouldShowSelectionToolbar) { |
|
|
|
|
// added to show selection copy/paste toolbar after drag to select |
|
|
|
|
if (delegate.selectionEnabled) { |
|
|
|
|
if (shouldShowSelectionToolbar) { |
|
|
|
|
editor!.showToolbar(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// Returns a [EditorTextSelectionGestureDetector] configured with |
|
|
|
|
/// the handlers provided by this builder. |
|
|
|
|