colorpicker_sit library
Classes
- BlockPicker
- CheckerPainter
- Painter for chess type alpha background in slider track widget.
- ColorIndicator
- Simple round color indicator.
- ColorPicker
- The default layout of Color Picker.
- ColorPickerArea
- Provide Rectangle & Circle 2 categories, 10 variations of palette widget.
- ColorPickerHueRing
- Provide Hue Ring with HSV Rectangle of palette widget.
- ColorPickerInput
- Provide hex input wiget for 3/6/8 digits.
- ColorPickerLabel
- Provide label for color information.
- ColorPickerSlider
- 9 track types for slider picker widget.
- HSLWithHueColorPainter
- Painter for SL mixture.
- HSLWithLightnessColorPainter
- Painter for HS mixture.
- HSLWithSaturationColorPainter
- Painter for HL mixture.
- HSVWithHueColorPainter
- Painter for SV mixture.
- HSVWithSaturationColorPainter
- Painter for HV mixture.
- HSVWithValueColorPainter
- Painter for HS mixture.
- HUEColorWheelPainter
- Painter for hue color wheel.
- HueRingPainter
- Painter for hue ring.
- HueRingPicker
- The Color Picker with HUE Ring & HSV model.
- IndicatorPainter
- Painter for chess type alpha background in color indicator widget.
- MaterialPicker
- MultipleChoiceBlockPicker
- RGBWithBlueColorPainter
- Painter for RG mixture.
- RGBWithGreenColorPainter
- Painter for RB mixture.
- RGBWithRedColorPainter
- Painter for GB mixture.
- SlidePicker
- The Color Picker with sliders only. Support HSV, HSL and RGB color model.
- ThumbPainter
- Painter for thumb of slider.
- TrackPainter
- Painter for all kinds of track types.
- UpperCaseTextFormatter
- Uppercase text formater
Enums
- ColorLabelType
- Color information label type.
- ColorModel
- Types for slider picker widget.
- PaletteType
- Palette types for color picker area widget.
- TrackType
- Track types for slider picker.
Extensions
Constants
- kCompleteValidHexPattern → const String
- RegExp pattern for validation complete HEX color String, allows only:
- kValidHexPattern → const String
- RegExp pattern for validation HEX color String inputs, allows only:
Functions
-
colorFromHex(
String inputString, {bool enableAlpha = true}) → Color? - Try to convert text input or any String to valid Color. The String must be provided in one of those formats:
-
colorToHex(
Color color, {bool includeHashSign = false, bool enableAlpha = true, bool toUpperCase = true}) → String -
Converts
dart:ui
Color to the 6/8 digits HEX String. -
hslToHsv(
HSLColor color) → HSVColor - Convert HSL to HSV
-
hsvToHsl(
HSVColor color) → HSLColor - Convert HSV to HSL
-
useWhiteForeground(
Color backgroundColor, {double bias = 0.0}) → bool - Check if is good condition to use white foreground color by passing the background color, and optional bias.
Typedefs
- PickerItem = Widget Function(Color color)
- Child widget for layout builder.
- PickerItemBuilder = Widget Function(Color color, bool isCurrentColor, void changeColor())
- Customize the item shape.
-
PickerLayoutBuilder
= Widget Function(BuildContext context, List<
Color> colors, PickerItem child) - Customize the layout.