ColorPicker constructor

const ColorPicker({
  1. Key? key,
  2. required Color pickerColor,
  3. required ValueChanged<Color> onColorChanged,
  4. PaletteType paletteType = PaletteType.hsv,
  5. bool enableAlpha = true,
  6. bool showLabel = true,
  7. TextStyle? labelTextStyle,
  8. bool displayThumbColor = false,
  9. bool portraitOnly = false,
  10. double colorPickerWidth = 300.0,
  11. double pickerAreaHeightPercent = 1.0,
  12. BorderRadius pickerAreaBorderRadius = const BorderRadius.all(Radius.zero),
  13. 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);