mchome / flutter_colorpicker

HSV(HSB)/HSL/RGB/Material color picker inspired by all the good design for your amazing flutter apps.
https://pub.dev/packages/flutter_colorpicker
MIT License
350 stars 203 forks source link

Manual Hex Input #31

Closed jaxnz closed 2 years ago

jaxnz commented 3 years ago

Would it be a possibility to add the ability to type a Hex color in?

slavap commented 3 years ago

This feature could be very useful, please add it.

msachner commented 3 years ago

This would be very helpful, please add this feature.

Legolaszstudio commented 3 years ago

+1 for this feature, it already seems to be in a to-do phase. https://github.com/mchome/flutter_colorpicker/blob/d149012d43b0e8478809ab3fd306660b188251b5/lib/src/hsv_picker.dart#L352

So looking forward impatiently to it, Happy developing!

techno-disaster commented 3 years ago

@mchome any update on this? :P

tsinis commented 3 years ago

Hey @jaxnz!

Manual Hex Input, via TextEditingController, was merged to the master channel, you may try it with git dependency in your pubspec.yaml. An example is also there since it's not that "beginner-friendly" technic (but providing much more control for UI and text input). I'll try to create a PR to provide support for 3-digits HEX inputs in the basic validator during this weekend. If it's enough for your needs — please consider closing the issue. Thanks!