SlidePicker constructor
const
SlidePicker({
- Key? key,
- required Color currentColour,
- required ValueChanged<
Color> onColorChanged, - ColorModel colorModel = ColorModel.rgb,
- bool enableAlpha = true,
- Size sliderSize = const Size(260, 40),
- bool showSliderText = true,
- TextStyle? sliderTextStyle,
- bool showParams = true,
- bool showLabel = true,
- List<
ColorLabelType> labelTypes = const [], - 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 = true,
- BorderRadius indicatorBorderRadius = const BorderRadius.all(Radius.zero),
Implementation
const SlidePicker({
super.key,
required this.currentColour,
required this.onColorChanged,
this.colorModel = ColorModel.rgb,
this.enableAlpha = true,
this.sliderSize = const Size(260, 40),
this.showSliderText = true,
this.sliderTextStyle,
this.showParams = true,
this.showLabel = true,
this.labelTypes = const [],
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 = true,
this.indicatorBorderRadius = const BorderRadius.all(Radius.zero),
});