SquarePicker constructor
const
SquarePicker({
- Key? key,
- required Color currentColour,
- required ValueChanged<
Color> onColorChanged, - HSVColour? pickerHsvColor,
- ValueChanged<
HSVColour> ? onHsvColorChanged, - PaletteType paletteType = PaletteType.hsvWithHue,
- bool enableAlpha = true,
- bool showLabel = true,
- List<
ColorLabelType> labelTypes = const [ColorLabelType.rgb, ColorLabelType.hsv, ColorLabelType.hsl], - bool displayThumbColor = false,
- bool portraitOnly = false,
- double colorPickerWidth = 300.0,
- double pickerAreaHeightPercent = 1.0,
- BorderRadius pickerAreaBorderRadius = const BorderRadius.all(Radius.zero),
- List<
Color> ? colorHistory, - ValueChanged<
List< ? onHistoryChanged,Color> >
Implementation
const SquarePicker({
super.key,
required this.currentColour,
required this.onColorChanged,
this.pickerHsvColor,
this.onHsvColorChanged,
this.paletteType = PaletteType.hsvWithHue,
this.enableAlpha = true,
this.showLabel = true,
this.labelTypes = const [
ColorLabelType.rgb,
ColorLabelType.hsv,
ColorLabelType.hsl,
],
this.displayThumbColor = false,
this.portraitOnly = false,
this.colorPickerWidth = 300.0,
this.pickerAreaHeightPercent = 1.0,
this.pickerAreaBorderRadius = const BorderRadius.all(Radius.zero),
this.colorHistory,
this.onHistoryChanged,
});