singerdmx / flutter-quill

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

Show context menu toolbar on single tap up #2177

Closed dashuaiqin closed 2 months ago

dashuaiqin commented 2 months ago

Is there an existing issue for this?

Flutter Quill version

10.5.5

Steps to reproduce

The toolbar appears when the textfield is clicked once in flutter, but not when the quillEditor is clicked

Expected results

Show toolbar

Actual results

toolbar will not show

Code sample

No response

Additional Context

No response

singerdmx commented 2 months ago

Does 10.5.4 have this issue?

dashuaiqin commented 2 months ago

Yes, there is this problem too. but the toolbar will appear when you click the cursor on the normal textfield

AtlasAutocode commented 2 months ago

On mobile, the copy-paste toolbar will only popup when you make a selection (long-press). Single tap would be used to move the caret so you can enter more text at a new position. In that case, wouldn't it be annoying to have a popup appear since you would have to keep closing it? I don't program for mobile so I don't know why single tap on a text field would give you a context menu. Is this normal?

dashuaiqin commented 2 months ago

I mean, click the position of the cursor on the ios side (just one click) to display the toolbar, just like this.

发自我的iPhone

------------------ Original ------------------ From: AtlasAutocode @.> Date: Tue,Sep 3,2024 9:25 PM To: singerdmx/flutter-quill @.> Cc: Wolffy @.>, Author @.> Subject: Re: [singerdmx/flutter-quill] Show context menu toolbar on singletap up (Issue #2177)

On mobile, the copy-paste toolbar will only popup when you make a selection (long-press). Single tap would be used to move the caret so you can enter more text at a new position. In that case, wouldn't it be annoying to have a popup appear since you would have to keep closing it? I don't program for mobile so I don't know why single tap on a text field would give you a context menu. Is this normal?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

dashuaiqin commented 2 months ago

https://github.com/user-attachments/assets/3e40aabf-d092-4958-bf05-492bdad40cf3

AtlasAutocode commented 2 months ago

Flutter-Quill does not have this concept.

I tried the Mail app on my iPad, and it also does not act in the way you are wanting. (I get no popup, and the cursor is positioned for adding text just like QuillEditor.) I tried the Text app on an iPhone, and it gave a response like you are looking for. So, it seems like this is a custom action rather than an expected result.

I am changing this issue to an enhancement rather than a bug to encourage contributors to look into how this could be done.

dashuaiqin commented 2 months ago

OK, thank you.

发自我的iPhone

------------------ Original ------------------ From: AtlasAutocode @.> Date: Tue,Sep 3,2024 10:19 PM To: singerdmx/flutter-quill @.> Cc: Wolffy @.>, Author @.> Subject: Re: [singerdmx/flutter-quill] Show context menu toolbar on singletap up (Issue #2177)

Flutter-Quill does not have this concept.

I tried the Mail app on my iPad, and it also does not act in the way you are wanting. (I get no popup, and the cursor is positioned for adding text just like QuillEditor.) I tried the Text app on an iPhone, and it gave a response like you are looking for. So, it seems like this is a custom action rather than an expected result.

I am changing this issue to an enhancement rather than a bug to encourage contributors to look into how this could be done.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

EchoEllet commented 2 months ago

@singerdmx Why is this issue closed?