singerdmx / flutter-quill

Rich text editor for Flutter
https://pub.dev/packages/flutter_quill
MIT License
2.6k stars 839 forks source link

[Android] Context menu disappears during text selection #2124

Closed stepushchik closed 3 months ago

stepushchik commented 3 months ago

Is there an existing issue for this?

Flutter Quill version

10.3.1

Steps to reproduce

  1. Add some text (several words)
  2. Long click by word
  3. Change selection

Expected results

There is an option to copy new selected text

Actual results

Context menu is hidden. Please find the attached screenshots.

Code sample

Code sample ```dart [Paste your code here] ```

Additional Context

Screenshots / Video demonstration ![Screenshot 2024-08-19 at 16 13 43](https://github.com/user-attachments/assets/9de8e0b0-bf63-48e1-b015-9394f5efcb6a) ![Screenshot 2024-08-19 at 16 13 59](https://github.com/user-attachments/assets/70e445c6-2f6a-4c42-9ed2-2306ae533037)
Logs ```console [Paste your logs here] ```
stepushchik commented 3 months ago

Maybe relates to https://github.com/singerdmx/flutter-quill/issues/2111

demoYang commented 3 months ago

check this commit https://github.com/singerdmx/flutter-quill/pull/2128

stepushchik commented 3 months ago

@demoYang @singerdmx v10.4.0: Android: I still can't copy updated selected text:

Screenshot 2024-08-20 at 10 09 45

Screenshot 2024-08-20 at 10 10 02

stepushchik commented 3 months ago

@demoYang @singerdmx Also during selection:

Null check operator used on a null value
W/System.err(24091):    at flutter_quill.src.editor.widgets.delegate.dart.EditorTextSelectionGestureDetectorBuilder.onDragSelectionUpdate(delegate.dart:766)
W/System.err(24091):    at flutter_quill.src.editor.widgets.text.text_selection.dart._EditorTextSelectionGestureDetectorState._handleDragUpdate(text_selection.dart:998)
W/System.err(24091):    at flutter.src.gestures.tap_and_drag.dart.BaseTapAndDragGestureRecognizer._checkDragUpdate.<fn>(tap_and_drag.dart:1244)
demoYang commented 3 months ago

@demoYang @singerdmx Also during selection:

Null check operator used on a null value
W/System.err(24091):  at flutter_quill.src.editor.widgets.delegate.dart.EditorTextSelectionGestureDetectorBuilder.onDragSelectionUpdate(delegate.dart:766)
W/System.err(24091):  at flutter_quill.src.editor.widgets.text.text_selection.dart._EditorTextSelectionGestureDetectorState._handleDragUpdate(text_selection.dart:998)
W/System.err(24091):  at flutter.src.gestures.tap_and_drag.dart.BaseTapAndDragGestureRecognizer._checkDragUpdate.<fn>(tap_and_drag.dart:1244)

is exception ? do you have video ?

yangzai100 commented 2 months ago

我试了下最新的版本10.5.13,在我的android手机上仍然有这个问题。长按选中后,只要拖动手柄,弹窗就会消失。