搜尋套件、儲存庫與 APP 分類

cyclop 封面
套件詳情v1.0.0

cyclop

一個實驗性的 Flutter 顏色選擇器,附帶可選的吸管工具(Material 顏色調色盤、AHSL、ARGB 和自訂調色盤庫)

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
4200
喜歡數
57
Pub 分數
160

安裝套件

flutter pub add cyclop

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Cyclop 是一個實驗性的 Flutter 顏色選擇器,具備可自訂介面,支援 Material 顏色樣本、AHSL 和 ARGB 顏色模型,以及自訂樣本庫。它包含一個可選的吸管工具,可用於從螢幕上精確選取顏色。專為尋求跨多個平台應用中靈活顏色輸入的開發者設計,可無縫整合至 Flutter 專案中。此套件非常適合使用者介面自訂、主題設計,以及需要進階顏色處理功能的創意應用。

適用情境

  • 主題自定義
  • UI/UX設計工具
  • 調色板建立
  • 創意應用開發
  • 螢幕顏色採樣

主要特色

  • 材質色卡
  • AHSL 和 ARGB 支持
  • 自定義色樣庫
  • 滴管工具
  • 跨平台相容性

適合對象

  • Flutter 開發者
  • 注重設計的應用程式
  • 顏色敏感的應用程式
  • 原型設計工具
  • 創意軟體

使用建議

  • 實驗狀態
  • 有限的文件
  • 需要平台權限以使用吸管工具
  • 未針對大型色樣集進行優化
  • 可能需要額外的樣式以實現整合

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Cyclop Pub Version

Cyclop logo

A flutter colorpicker with an eyedropper tool. Works on mobile, desktop & web ( CanvasKit)

Demo

Desktop & tablet Mobile
Cyclop desktop eyedropper Cyclop onmobile
Material HSL RVB Custom
Cyclop material Cyclop hsl Cyclop hsl Cyclop hsl
Light theme Dark theme
Cyclop light Cyclop dark
Eyedropper

Select a color from your Flutter mobile or desktop screen.

Cyclop eye dropper

To use the eyedropper you need to wrap the app in the EyeDrop widget.

@override
  Widget build(BuildContext context) {
    return EyeDrop(
      child: Builder(
        builder: (context) => Scaffold(
          backgroundColor: backgroundColor,
          body: Container(
            child: ColorButton(
              key: Key('c1'),
              color: color1,
              config: ColorPickerConfig(enableEyePicker = true),
              size: 32,
              elevation: 5,
              boxShape: BoxShape.rectangle, // default : circle
              swatches: swatches,
              onColorChanged: (value) => setState(() => color1 = value),
            ),
          ),
        ),
      ),
    );
  }
Customisable
  • disable opacity slider
  • disable eye dropping
  • disable swatch library
  • Circle or Square color buttons
ColorButton(
  key: Key('c1'),
  color: color1,
  config: ColorPickerConfig(
    this.enableOpacity = true,
    this.enableLibrary = false,
    this.enableEyePicker = true,
  ),
  boxShape: BoxShape.rectangle, // default : circle
  size: 32,
  swatches: swatches,
  onColorChanged: (value) => setState( () => color1 = value ),
 );

ColorButton(
  key: Key('c2'),
  color: color2,
  config: ColorPickerConfig(enableEyePicker: false),
  size: 64,
  swatches: swatches,
  onColorChanged: (value) => setState( () => color2 = value ),
  onSwatchesChanged: (newSwatches) => setState(() => swatches = newSwatches),
 );

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。