core/colour_picker library
Colour picker widgets, adapted from the flutter_colorpicker package
to use this package's theme and colour classes.
- ColourPicker: a full picker with a palette area, sliders, labels and optional hex input and history.
- HueRingPicker: a compact picker with a hue ring.
- SlidePicker: a picker made only of sliders.
The building blocks (ColourPickerArea, ColourPickerSlider, ColourPickerHueRing, ColourPickerInput, ColourPickerLabel and ColourIndicator) can also be used on their own to build a custom picker.
Classes
- CheckerPainter
- Paints a grey-and-white checkerboard, the usual background for showing transparency.
- ColourIndicator
- A circle filled with the current colour, over a checkerboard so transparency shows.
- ColourPicker
- A full colour picker: a palette area, sliders, a preview and colour labels, laid out side by side or stacked depending on the screen.
- ColourPickerArea
- The two-dimensional palette in a ColourPicker. Dragging or tapping in it picks two colour properties at once.
- ColourPickerHueRing
- A ring of every hue. Dragging around it changes the hue.
- ColourPickerInput
- A hex text field for typing an exact colour.
- ColourPickerLabel
- Shows the colour's values as text, in each format in colorLabelTypes (for example its red, green and blue values).
- ColourPickerSlider
- A slider for one colour property, drawn over a gradient of that property.
- HSLWithHueColourPainter
- Paints every HSL saturation (across) and lightness (down) for the hue of hslColor.
- HSLWithLightnessColourPainter
- Paints every hue (across) and HSL saturation (down) at the lightness of hslColor.
- HSLWithSaturationColourPainter
- Paints every hue (across) and lightness (down) at the HSL saturation of hslColor.
- HSVWithHueColourPainter
- Paints every saturation (across) and value (down) for the hue of hsvColor.
- HSVWithSaturationColourPainter
- Paints every hue (across) and value (down) at the saturation of hsvColor.
- HSVWithValueColourPainter
- Paints every hue (across) and saturation (down) at the value of hsvColor.
- HUEColorWheelPainter
- Paints a colour wheel (hue around the circle, saturation from the centre out) at the value of hsvColor.
- HueRingPainter
- Paints the hue ring and its thumb for ColourPickerHueRing.
- HueRingPicker
- A compact colour picker with a hue ring around a saturation-and-brightness square.
- IndicatorPainter
- Paints a colour over a checkerboard, so transparent colours are visible. Used by ColourIndicator.
- RGBWithBlueColourPainter
- Paints every combination of red and green at the blue level of color.
- RGBWithGreenColourPainter
- Paints every combination of red and blue at the green level of color.
- RGBWithRedColourPainter
- Paints every combination of green and blue at the red level of color.
- SlidePicker
- A colour picker made only of sliders, one per channel of colorModel, with an optional preview bar.
- ThumbPainter
- Paints the round, shadowed thumb of a ColourPickerSlider.
- TrackPainter
- Paints the gradient track behind a ColourPickerSlider.
- UpperCaseTextFormatter
- A text field formatter that turns everything typed into capitals.
Enums
- ColorLabelType
- A text format for showing a colour's value in a ColourPickerLabel.
- ColorModel
- The set of sliders a SlidePicker shows.
- PaletteType
- Which colour properties a ColourPicker palette area and its main slider control.
- TrackType
- Which colour property a ColourPickerSlider controls.
Constants
-
x11Colours
→ const Map<
String, Color> -
The standard named web colours, such as
aliceblueandtomato, keyed by lower-case name without spaces.
Functions
-
colorFromName(
String val) → Color? -
Looks up a named web colour, such as
'Light Sea Green'.