SlidePicker constructor
const
SlidePicker({
- Key? key,
- required Color pickerColor,
- required ValueChanged<
Color> onColorChanged, - ColorModel colorModel = ColorModel.rgb,
- bool enableAlpha = true,
- Size sliderSize = const Size(260, 40),
- bool showSliderText = true,
- @Deprecated('Use Theme.of(context).textTheme.bodyText1 & 2 to alter text style.') TextStyle? sliderTextStyle,
- bool showParams = true,
- @Deprecated('Use empty list in [labelTypes] to disable label.') bool showLabel = true,
- List<
ColorLabelType> labelTypes = const [], - @Deprecated('Use Theme.of(context).textTheme.bodyText1 & 2 to alter text style.') 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({
Key? key,
required this.pickerColor,
required this.onColorChanged,
this.colorModel = ColorModel.rgb,
this.enableAlpha = true,
this.sliderSize = const Size(260, 40),
this.showSliderText = true,
@Deprecated('Use Theme.of(context).textTheme.bodyText1 & 2 to alter text style.') this.sliderTextStyle,
this.showParams = true,
@Deprecated('Use empty list in [labelTypes] to disable label.') this.showLabel = true,
this.labelTypes = const [],
@Deprecated('Use Theme.of(context).textTheme.bodyText1 & 2 to alter text style.') 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),
}) : super(key: key);