pick_color 0.0.3 copy "pick_color: ^0.0.3" to clipboard
pick_color: ^0.0.3 copied to clipboard

A Flutter package which allow you to extract color and hexcode from image with simple touch.

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.

WhatsApp Image 2023-05-02 at 9 50 32 PM

WhatsApp Image 2023-05-02 at 9 47 14 PM

Add Dependency #

pick_color : any

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;  
                  
});    

That's all it takes 😃

Feel Free to contribute or file an issue happy coding.

27
likes
130
pub points
69%
popularity

Publisher

verified publisherthezerone.com

A Flutter package which allow you to extract color and hexcode from image with simple touch.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, image

More

Packages that depend on pick_color