SlidePicker constructor

const SlidePicker({
  1. Key? key,
  2. required Color pickerColor,
  3. required ValueChanged<Color> onColorChanged,
  4. PaletteType paletteType = PaletteType.hsv,
  5. bool enableAlpha = true,
  6. Size sliderSize = const Size(260, 40),
  7. bool showSliderText = true,
  8. TextStyle? sliderTextStyle,
  9. bool showLabel = true,
  10. TextStyle? labelTextStyle,
  11. bool showIndicator = true,
  12. Size indicatorSize = const Size(280, 50),
  13. AlignmentGeometry indicatorAlignmentBegin = const Alignment(-1.0, -3.0),
  14. AlignmentGeometry indicatorAlignmentEnd = const Alignment(1.0, 3.0),
  15. bool displayThumbColor = false,
  16. 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);