slides static method
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),
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,
);
}