FLUTTER ECOSYSTEM

Oauth-Celestial/image_color_picker

Oauth-Celestial/image_color_picker open-source repository details.

image_color_picker のプロジェクト画像
Stars
1
Forks
2
最終プッシュ(UTC)
2023/05/07
プロジェクト状態
公開中
Ravi Pai GitHub avatar
GITHUB User

Ravi Pai ↗

言語C++CMakeDartHTMLCSwiftKotlinObjective-C

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 3 件
  • flutter{"sdk":"flutter"}
  • image^3.0.1
  • flutter_test開発用{"sdk":"flutter"}

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

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.