MiuixColorPicker constructor
const
MiuixColorPicker({
- Key? key,
- required Color color,
- required ValueChanged<
Color> onColorChanged, - bool showPreview = true,
- MiuixSliderHapticEffect hapticEffect = MiuixSliderDefaults.defaultHapticEffect,
- MiuixColorSpace colorSpace = MiuixColorSpace.hsv,
Implementation
const MiuixColorPicker({
super.key,
required this.color,
required this.onColorChanged,
this.showPreview = true,
this.hapticEffect = MiuixSliderDefaults.defaultHapticEffect,
this.colorSpace = MiuixColorSpace.hsv,
});