flutter-quill icon indicating copy to clipboard operation
flutter-quill copied to clipboard

Multi-line style identification bug

Open Alspb opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

Flutter Quill version

master

Steps to reproduce

Select some multi-line text first part of which is non-bold while second part is bold.

Expected results

The selection style is shown as non-bold since not all the selected text is bold.

For example, it works fine if selection covers single line only. It also works fine if the first part is bold while the second is not.

Actual results

The selection style is shown as bold.

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Bug:

Multiline style identification bug

Correct behavior:

Multiline style identification ok

Logs

Logs
[Paste your logs here]

Alspb avatar May 13 '24 23:05 Alspb

Looks that in version 9.3.7 many style identification bugs were fixed. @AtlasAutocode , could you please take a look if you're able to fix this one too.

Alspb avatar May 13 '24 23:05 Alspb

I believe I have identified the problem but need to test more and add some unit tests. I may also be able to assist with your other issues.

On a different note: I see that you contributed to improving text search. It would be really useful to have a Prev/Next option. Any chance you can look into this?

AtlasAutocode avatar May 16 '24 13:05 AtlasAutocode

@AtlasAutocode, thanks a lot.

I've actually planned to improve the search UI a bit in the nearest future: replace the search settings icons (case sensitive, etc.) with checkboxes, move the search widget to be displayed above the toolbar (since there's usually not enough space for both on mobile devices), an so on. Any suggestion are welcome. But Prev/Next buttons should be already there, they appear after you press "Find". Probably the idea is that you should have as much space as possible for entering the text you are searching for, so initially there's only one "Find" button instead of two "Prev", "Next".

As for the other issues, there were some problems with undo (it sometimes move cursor in an unusual way) which might even cause a crash, see issue 1289. But I will take a look soon. The most inconvenient issue is in my opinion 1297, since it influences text selection experience on mobile devices. But it probably might take time to understand how this piece of code works. I've also posted some issues recently, some of them are still open, but it looks like you've already closed most of the most important ones.

Alspb avatar May 19 '24 16:05 Alspb