ColorPicker constructor
const
ColorPicker({
- required ValueChanged<
Color> onChanged, - Color color = Colors.blue,
- Picker initialPicker = Picker.paletteHue,
- PickerOrientation pickerOrientation = PickerOrientation.inherit,
- double paletteHeight = 280,
- Key? key,
Implementation
const ColorPicker({
required this.onChanged,
this.color = Colors.blue,
this.initialPicker = Picker.paletteHue,
this.pickerOrientation = PickerOrientation.inherit,
this.paletteHeight = 280,
Key? key,
}) : super(key: key);