slides static method

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

Implementation

static Widget slides({
  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 showLabel = true,
  bool showParams = 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),
}) {
  return SlidePicker(
    currentColour: currentColour,
    onColorChanged: onColorChanged,
    colorModel: colorModel,
    enableAlpha: enableAlpha,
    sliderSize: sliderSize,
    showSliderText: showSliderText,
    sliderTextStyle: sliderTextStyle,
    showLabel: showLabel,
    showParams: showParams,
    labelTypes: labelTypes,
    labelTextStyle: labelTextStyle,
    showIndicator: showIndicator,
    indicatorSize: indicatorSize,
    indicatorAlignmentBegin: indicatorAlignmentBegin,
    indicatorAlignmentEnd: indicatorAlignmentEnd,
    displayThumbColor: displayThumbColor,
    indicatorBorderRadius: indicatorBorderRadius,
  );
}