cyclop 0.2.3+2

Flutter Android iOS web

Cyclop is a flutter color palette with an optional eyedropper tool on mobile and desktop.

Cyclop #

Cyclop logo

A flutter color palette with an eyedropper ( on mobile & desktop )

Demo #

Desktop & tabletMobile
Cyclop desktop eyedropperCyclop onmobile
MaterialHSLRVBCustom
Cyclop materialCyclop hslCyclop hslCyclop hsl
Light themeDark theme
Cyclop lightCyclop dark

Eyedropper #

Select a color from your Flutter mobile or desktop screen.

Cyclop eye dropper

To use the eyedropper ( Flutter mobile & desktop ) 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),
 );
7
likes
90
pub points
66%
popularity

Publisher

rxlabz.com

Cyclop is a flutter color palette with an optional eyedropper tool on mobile and desktop.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, image, quiver

More

Packages that depend on cyclop