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

[Web] and [Desktop] Color picker now includes alpha channel in color values

Open ndcube opened this issue 2 years ago • 4 comments

My issue is about [Web] and [Desktop] (have not tested Mobile) flutter_quill 7.2.1

The default color pickers in QuillToolbar.basic now include the alpha channel in the selected color - ARGB format, instead of just RGB. For example delta now looks like this insert⟨ hello ⟩ + {color: #FF5E35B1} instead of insert⟨ hello ⟩ + {color: #5E35B1} I have realized this when I tried to convert the document delta to html format using vsc_quill_delta_to_html as it rejected the argb color values. I have created an issue for that there https://github.com/VisualSystemsCorp/vsc_quill_delta_to_html/issues/3 but according to them this must be a bug introduced in flutter_quill 7.2.x because in "Quill doc/code, hex colors should always be 3 or 6 digits".

So now html conversion looses all colors because it expects them to be in the format RGB but now the quill delta does not conform to the expected format.

ndcube avatar Jun 07 '23 12:06 ndcube

@singerdmx It's disappointing that this is closed. Based on what I see in the official Quill doc/code, hex colors should always be 3 or 6 digits.

dsyrstad avatar Jul 11 '23 13:07 dsyrstad

I had the same problem。 flutter_quill: ^7.3.2

wojide0301 avatar Aug 14 '23 08:08 wojide0301

@singerdmx It's disappointing that this is closed. Based on what I see in the official Quill doc/code, hex colors should always be 3 or 6 digits.

Don't worry, it's reopened now

EchoEllet avatar Nov 15 '23 19:11 EchoEllet

I agree that it should be 6 digits so it matches quill_js. When my web app saves quill changes to JSON it is 6 digits but when it is saved to JSON on mobile it has 8 digits because of including the transparency.

deffs avatar Nov 29 '23 21:11 deffs