搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。