搜索插件、代码仓与 APP 分类

插件详情v1.0.7

image_color_picker

从图像(assets/network/file)中选取颜色并获取颜色十六进制代码。

近 30 天下载
27
喜欢数
43
Pub 分数
35

安装插件

flutter pub add image_color_picker

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Flutter 包,允许用户从来自资源、网络或本地文件的图像中选择颜色。它从所选图像中提取主导和代表性颜色的十六进制代码,非常适合设计和主题自定义工作流程。该包轻量级,并可无缝集成到需要视觉颜色分析的应用程序中。支持多种图像格式,并提供准确的颜色采样,设置简单。

适合场景

  • UI 主题的颜色提取
  • 设计工具集成
  • 基于图像的调色板生成
  • 应用主题自定义
  • 创意应用颜色选择

主要特点

  • 从图像中提取十六进制颜色代码
  • 支持资产、网络和文件源
  • 轻量且易于集成
  • 精确的颜色采样
  • 跨平台兼容性

适合对象

  • UI/UX 设计师
  • 创意应用开发者
  • 基于主题的应用构建器
  • 调色板生成器
  • 使用 Flutter 的移动应用开发者

使用建议

  • 需要图像加载权限以用于文件源
  • 仅限静态图像处理
  • 无实时颜色预览
  • 取决于图像大小和质量
  • 使用大图像时可能会影响性能

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Image color picker

Add a heading

Pick color from image (assets/network/file) and get color hexcodes

Installation

First, add image_color_picker: ^1.0.0 as a dependency in your pubspec.yaml file.

Import

import 'import 'package:image_color_picker/image_color_picker.dart';';

Just provide Image either by assets/network/file and get colorCodes

Network

onPressed: () {
            Navigator.push(
                context,
                MaterialPageRoute(
                    builder: (context) => NetworkImageBG(
                          networkpath:
                              'https://media-exp1.licdn.com/dms/image/C5122AQEtG7CO0rFCRg/feedshare-shrink_800/0?e=1588809600&v=beta&t=kc8G2jGTOzxm0ehLchKh0SlTSyUl62Vtb5K59P00BLY',
                        )));
          },

Asset

onPressed: () {
            Navigator.push(
                context,
                MaterialPageRoute(
                    builder: (context) => AssetImageBG(
                          assetPath: 
                              'https://media-exp1.licdn.com/dms/image/C5122AQEtG7CO0rFCRg/feedshare-shrink_800/0?e=1588809600&v=beta&t=kc8G2jGTOzxm0ehLchKh0SlTSyUl62Vtb5K59P00BLY',
                        )));
          },

File

onPressed: () {
            Navigator.push(
                context,
                MaterialPageRoute(
                    builder: (context) => FileImageBG(
                          filePath: 
                              File('./path')),
                        ));
          },

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

MIT License

Copyright (c) 2020 Zeeshux7860

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。