hsv_color_pickers 0.1.0 copy "hsv_color_pickers: ^0.1.0" to clipboard
hsv_color_pickers: ^0.1.0 copied to clipboard

outdated

Flutter package for creating customisable Color pickers for HSV Colors.

HSV Color Pickers #

gallerize pub.dev analysis

Flutter package for creating customisable Color pickers for HSV Colors.

Hue Picker #

The HuePicker is used to let the user pick the hue of a HSVColor by selecting it on the slider.

Hue Slider 1

The height of the slider is customizable.
Hue Slider 2

The slider thumb is as well completely customizable.
Hue Slider 3

Usage #

HuePicker(
  initialColor: HSVColor.fromColor(Colors.green),
  onChanged: (HSVColor color) {
      // do something with color
  },
)

Customize #

Customize the slider's height using trackHeight:

HuePicker(
  ...
  trackHeight: 50,
)

Customize the thumb by passing a thumbOverlayColor and a custom thumbShape:

HuePicker(
  ...
  thumbOverlayColor: Colors.green.withOpacity(0.3),
  thumbShape: HueSliderThumbShape(
    color: Colors.black,
    strokeWidth: 8,
    filled: false,
    showBorder: true
  ),
)

HueSliderThumbShape offers the following properties for customisation:

  • radius: the radius of the thumb (double)
  • filled: whether the thumb should be filled or not (bool)
  • color: main color of the thumb
  • strokeWidth: stroke with for non-filled thumb (double)
  • showBorder: whether to show the border or not (bool)
  • borderColor: color of the border, if shown
  • borderWidth: stroke with of the border, if shown (double)

Coming soon... #

  • Saturation Picker
  • Brightness Picker

Contribute #

If you have any ideas for extending this package or have found a bug, please contribute!

  1. You'll need a GitHub account.
  2. Fork the hsv_color_pickers repository.
  3. Work on your feature/bug.
  4. Create a pull request.
  5. Star this project. ⭐
  6. Become a hero!! 🎉
20
likes
0
pub points
87%
popularity

Publisher

verified publisherwiefel.dev

Flutter package for creating customisable Color pickers for HSV Colors.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on hsv_color_pickers