ColorPicker constructor
const
ColorPicker({
- Key? key,
- required Color pickerColor,
- required ValueChanged<
Color> onColorChanged, - PaletteType paletteType = PaletteType.hsv,
- bool enableAlpha = true,
- bool showLabel = true,
- TextStyle? labelTextStyle,
- bool displayThumbColor = false,
- bool portraitOnly = false,
- double colorPickerWidth = 300.0,
- double pickerAreaHeightPercent = 1.0,
- BorderRadius pickerAreaBorderRadius = const BorderRadius.all(Radius.zero),
- TextEditingController? hexInputController,
Implementation
const ColorPicker({
Key? key,
required this.pickerColor,
required this.onColorChanged,
this.paletteType = PaletteType.hsv,
this.enableAlpha = true,
this.showLabel = true,
this.labelTextStyle,
this.displayThumbColor = false,
this.portraitOnly = false,
this.colorPickerWidth = 300.0,
this.pickerAreaHeightPercent = 1.0,
this.pickerAreaBorderRadius = const BorderRadius.all(Radius.zero),
this.hexInputController,
}) : super(key: key);