SlidePicker constructor
const
SlidePicker({
- Key? key,
- required Color pickerColor,
- required ValueChanged<
Color> onColorChanged, - PaletteType paletteType = PaletteType.hsv,
- bool enableAlpha = true,
- Size sliderSize = const Size(260, 40),
- bool showSliderText = true,
- TextStyle? sliderTextStyle,
- bool showLabel = true,
- TextStyle? labelTextStyle,
- bool showIndicator = true,
- Size indicatorSize = const Size(280, 50),
- AlignmentGeometry indicatorAlignmentBegin = const Alignment(-1.0, -3.0),
- AlignmentGeometry indicatorAlignmentEnd = const Alignment(1.0, 3.0),
- bool displayThumbColor = false,
- BorderRadius indicatorBorderRadius = const BorderRadius.all(Radius.zero),
Implementation
const SlidePicker({
Key? key,
required this.pickerColor,
required this.onColorChanged,
this.paletteType = PaletteType.hsv,
this.enableAlpha = true,
this.sliderSize = const Size(260, 40),
this.showSliderText = true,
this.sliderTextStyle,
this.showLabel = true,
this.labelTextStyle,
this.showIndicator = true,
this.indicatorSize = const Size(280, 50),
this.indicatorAlignmentBegin = const Alignment(-1.0, -3.0),
this.indicatorAlignmentEnd = const Alignment(1.0, 3.0),
this.displayThumbColor = false,
this.indicatorBorderRadius = const BorderRadius.all(Radius.zero),
}) : super(key: key);