Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MathGaps/cyclop

Repository files navigation

Cyclop Pub Version

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

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),
 boxShape: BoxShape.rectangle, // default : circle
 size: 32,
 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),
 );

About

A Flutter color palette with eyedropper, HSL, RGB and Material colors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • Dart 96.1%
  • Swift 1.7%
  • HTML 1.7%
  • Other 0.5%

AltStyle によって変換されたページ (->オリジナル) /