rydmike / flex_color_picker

A highly customizable Flutter color picker.
BSD 3-Clause "New" or "Revised" License
198 stars 41 forks source link

Add a Named Color Picker #30

Open LefebvreIlyas opened 2 years ago

LefebvreIlyas commented 2 years ago

Hi @rydmike ,

A huge thank you for this package, it is extremely complete.

Just a small suggestion, the possibility to choose a color among the 1566 named colors in the form of a list or a grid with the possibility to research.

Have a nice day

rydmike commented 2 years ago

Hi @LefebvreIlyas, I like it, that's a cool idea! 😎

A list with color+name and a search bar might work, you could scroll and pick or search/filter by name too, perhaps a toggle view to a smaller small/tight grid view as well where you can see more colors at once and still filter by name, but names are not shown (maybe as tooltips). Any other suggestions? How do you see it working ideally?

The "Name That Color" algorithm applies the same color name to many similar colors, by finding the named color with the color value "closest" to a given color value. Picking a given color name could return the exact color definition for the named color from this list: https://github.com/rydmike/flex_color_picker/blob/38337d1cdfdb150f57ce6f831fb7c0fe270989b4/lib/src/color_tools.dart#L821

BTW I did not come up the original color names and codes, it came as mentioned in the source from this project: https://chir.ag/projects/ntc/

And glad to hear you like the package, it is due for some updates and more features, this could certainly be one of them.

LefebvreIlyas commented 2 years ago

Cool! 😀

Your proposal is very good, that's what I had in mind, the tooltips seem to me a very good idea.

As a suggestion I could say:

Don't forget the quality of the README.md and the demos which allow you to have an overview of the functionality and the degree of customization in an instant, it's really a great job!!