ProgressBar constructor
const
ProgressBar({
- Key? key,
- required Duration progress,
- required Duration total,
- Duration? buffered,
- ValueChanged<
Duration> ? onSeek, - ThumbDragStartCallback? onDragStart,
- ThumbDragUpdateCallback? onDragUpdate,
- VoidCallback? onDragEnd,
- double barHeight = 5.0,
- Color? baseBarColor,
- Color? progressBarColor,
- Color? bufferedBarColor,
- BarCapShape barCapShape = BarCapShape.round,
- double? barBorderRadius,
- double thumbRadius = 10.0,
- Color? thumbColor,
- Color? thumbGlowColor,
- double thumbGlowRadius = 30.0,
- bool thumbCanPaintOutsideBar = true,
- ThumbShape thumbShape = ThumbShape.circle,
- double lineThumbWidth = 4.0,
- double lineThumbHeight = 14.0,
- double lineThumbBorderRadius = 2.0,
- double thumbBarGap = 0.0,
- double thumbGap = 0.0,
- TimeLabelLocation? timeLabelLocation,
- TimeLabelType? timeLabelType,
- TextStyle? timeLabelTextStyle,
- double timeLabelPadding = 0.0,
- SineWaveConfig? sineWaveConfig,
Implementation
const ProgressBar({
super.key,
required this.progress,
required this.total,
this.buffered,
this.onSeek,
this.onDragStart,
this.onDragUpdate,
this.onDragEnd,
this.barHeight = 5.0,
this.baseBarColor,
this.progressBarColor,
this.bufferedBarColor,
this.barCapShape = BarCapShape.round,
this.barBorderRadius,
this.thumbRadius = 10.0,
this.thumbColor,
this.thumbGlowColor,
this.thumbGlowRadius = 30.0,
this.thumbCanPaintOutsideBar = true,
this.thumbShape = ThumbShape.circle,
this.lineThumbWidth = 4.0,
this.lineThumbHeight = 14.0,
this.lineThumbBorderRadius = 2.0,
this.thumbBarGap = 0.0,
this.thumbGap = 0.0,
this.timeLabelLocation,
this.timeLabelType,
this.timeLabelTextStyle,
this.timeLabelPadding = 0.0,
this.sineWaveConfig,
});