pick_color

Creator: coderz1093

Last updated:

Add to Cart

Description:

pick color

Pick_Color #
Pick_Color allows you to sample specific colors from an image and obtain their hex color code by just dragging over the image area.

Add Dependency #
pick_color : any
copied to clipboard
Usage #
Image image = Image.asset("assets/b.jpg");
ColorPicker(
child: image, # Your Image widget
onChanged: (response) {
String hexcode = response.hexCode;
// Get Selected Color
Color color = response.selectionColor;
// Get Red Channel Color
int redValue = response.redScale;
// Get Blue Channel Color
int blueValue = response.blueScale;
// Get Green Channel Color
int greenValue = response.greenScale;

});
copied to clipboard
That's all it takes 😃
Feel Free to contribute or file an issue happy coding.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.