SeekBar constructor
const
SeekBar({
- Key? key,
- ValueChanged<
ProgressValue> ? onValueChanged, - double min = 0.0,
- double max = 100.0,
- double? progressHeight,
- double value = 0.0,
- Color? backgroundColor,
- Color? progressColor,
- String? semanticsLabel,
- String? semanticsValue,
- double? indicatorRadius,
- Color? indicatorColor,
- int? sectionCount,
- Color? sectionColor,
- Color? sectionUnSelectColor,
- double? sectionRadius,
- bool? showSectionText,
- List<
SectionTextModel> ? sectionTexts, - double sectionTextSize = 14.0,
- bool? afterDragShowSectionText,
- Color? sectionTextColor,
- Color? sectionSelectTextColor,
- int sectionDecimal = 0,
- double sectionTextMarginTop = 4.0,
- bool isRound = true,
- bool? hideBubble,
- double? bubbleRadius,
- double? bubbleHeight,
- Color? bubbleColor,
- Color bubbleTextColor = Colors.white,
- double bubbleTextSize = 14.0,
- double bubbleMargin = 4.0,
- bool bubbleInCenter = false,
- bool? alwaysShowBubble,
- bool isCanTouch = true,
Implementation
const SeekBar({
Key? key,
ValueChanged<ProgressValue>? onValueChanged,
double min = 0.0,
double max = 100.0,
double? progressHeight,
double value = 0.0,
Color? backgroundColor,
Color? progressColor,
String? semanticsLabel,
String? semanticsValue,
double? indicatorRadius,
Color? indicatorColor,
int? sectionCount,
Color? sectionColor,
///间隔圆圈未选中的颜色
final Color? sectionUnSelectColor,
double? sectionRadius,
bool? showSectionText,
/// 刻度值的数组
final List<SectionTextModel>? sectionTexts,
///刻度值的字体大小
final double sectionTextSize = 14.0,
bool? afterDragShowSectionText,
///刻度值的字体颜色
final Color? sectionTextColor,
///刻度值的字体颜色
final Color? sectionSelectTextColor,
///刻度值的小数点的位数,默认是0位
final int sectionDecimal = 0,
///刻度值距离进度条的间距
final double sectionTextMarginTop = 4.0,
bool isRound = true,
bool? hideBubble,
double? bubbleRadius,
this.bubbleHeight,
this.bubbleColor,
this.bubbleTextColor = Colors.white,
this.bubbleTextSize = 14.0,
this.bubbleMargin = 4.0,
this.bubbleInCenter = false,
this.alwaysShowBubble,
this.isCanTouch = true,
}) : hideBubble = hideBubble ?? true,
bubbleRadius = bubbleRadius ?? 20,
super(
key: key,
onValueChanged: onValueChanged,
min: min,
max: max,
progressHeight: progressHeight,
value: value,
backgroundColor: backgroundColor,
progressColor: progressColor,
semanticsLabel: semanticsLabel,
semanticsValue: semanticsValue,
indicatorRadius: indicatorRadius,
indicatorColor: indicatorColor,
isRound: isRound,
sectionCount: sectionCount,
sectionColor: sectionColor,
sectionUnSelectColor: sectionUnSelectColor,
sectionRadius: sectionRadius,
showSectionText: showSectionText,
sectionTexts: sectionTexts,
sectionTextSize: sectionTextSize,
afterDragShowSectionText: afterDragShowSectionText,
sectionTextColor: sectionTextColor,
sectionSelectTextColor: sectionSelectTextColor,
sectionDecimal: sectionDecimal,
sectionTextMarginTop: sectionTextMarginTop,
);