SlidePicker constructor

const SlidePicker({
  1. Key? key,
  2. required Color currentColour,
  3. required ValueChanged<Color> onColorChanged,
  4. ColorModel colorModel = ColorModel.rgb,
  5. bool enableAlpha = true,
  6. Size sliderSize = const Size(260, 40),
  7. bool showSliderText = true,
  8. TextStyle? sliderTextStyle,
  9. bool showParams = true,
  10. bool showLabel = true,
  11. List<ColorLabelType> labelTypes = const [],
  12. TextStyle? labelTextStyle,
  13. bool showIndicator = true,
  14. Size indicatorSize = const Size(280, 50),
  15. AlignmentGeometry indicatorAlignmentBegin = const Alignment(-1.0, -3.0),
  16. AlignmentGeometry indicatorAlignmentEnd = const Alignment(1.0, 3.0),
  17. bool displayThumbColor = true,
  18. 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),
});