v0.0.4pick_color
簡単なタッチで画像から色と16進数コードを抽出できるFlutterパッケージです。
29いいね 3530日間ダウンロード140Pub ポイント
AndroidiOSWebmacOSWindowsLinux
Oauth-Celestial/image_color_picker open-source repository details.
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
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 : any
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.
依存関係一覧 3 件
{"sdk":"flutter"}^3.0.1{"sdk":"flutter"}用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗