搜索插件、代码仓与 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),
 );

所属分类

源码仓库

使用此插件的项目

暂无相关数据。