v0.0.4pick_color
一个 Flutter 包,可让您通过简单触摸从图像中提取颜色和十六进制代码。
29喜欢 35近 30 天下载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 ↗