Search packages, repositories and app categories

GitHub repositoryOauth-Celestial/image_color_picker

image_color_picker

Oauth-Celestial/image_color_picker open-source repository details.

image_color_picker project cover
Stars
1
Forks
2
Last push (UTC)
May 7, 2023
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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.

pick_color

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.

Ravi Pai GitHub avatar
GitHub author

Ravi Pai ↗

LanguagesC++CMakeDartHTMLCSwiftKotlinObjective-C

Packages published by this repository

Dependencies used

Dependency list 3 items

  • flutter{"sdk":"flutter"}
  • image^3.0.1
  • flutter_testDevelopment{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗