v0.7.0cyclop
一個實驗性的 Flutter 顏色選擇器,附帶可選的吸管工具(Material 顏色調色盤、AHSL、ARGB 和自訂調色盤庫)
57喜歡 1380近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
帶有吸管工具、HSL、RGB 和 Material 顏色的 Flutter 色板
{"sdk":"flutter"}^4.1.3^3.2.1^0.10.0{"sdk":"flutter"}^2.0.3以下為英文專案原文快照,最新內容請造訪 GitHub。
Cyclop logo
A flutter colorpicker with an eyedropper tool. Works on mobile, desktop & web ( CanvasKit)
| 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 |
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),
),
),
),
),
);
}
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),
);