ProgressBar constructor

const ProgressBar({
  1. Key? key,
  2. required Duration progress,
  3. required Duration total,
  4. Duration? buffered,
  5. ValueChanged<Duration>? onSeek,
  6. ThumbDragStartCallback? onDragStart,
  7. ThumbDragUpdateCallback? onDragUpdate,
  8. VoidCallback? onDragEnd,
  9. double barHeight = 5.0,
  10. Color? baseBarColor,
  11. Color? progressBarColor,
  12. Color? bufferedBarColor,
  13. BarCapShape barCapShape = BarCapShape.round,
  14. double? barBorderRadius,
  15. double thumbRadius = 10.0,
  16. Color? thumbColor,
  17. Color? thumbGlowColor,
  18. double thumbGlowRadius = 30.0,
  19. bool thumbCanPaintOutsideBar = true,
  20. ThumbShape thumbShape = ThumbShape.circle,
  21. double lineThumbWidth = 4.0,
  22. double lineThumbHeight = 14.0,
  23. double lineThumbBorderRadius = 2.0,
  24. double thumbBarGap = 0.0,
  25. double thumbGap = 0.0,
  26. TimeLabelLocation? timeLabelLocation,
  27. TimeLabelType? timeLabelType,
  28. TextStyle? timeLabelTextStyle,
  29. double timeLabelPadding = 0.0,
  30. 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,
});