VideoProgressBar constructor

const VideoProgressBar({
  1. Key? key,
  2. required double played,
  3. double buffered = 0.0,
  4. Duration? currentTime,
  5. Duration? totalTime,
  6. double trackHeight = 1.5,
  7. Color playedColor = const Color(0xFF01BEBE),
  8. Color bufferedColor = const Color(0x26FFFFFF),
  9. Color unplayedColor = const Color(0x4DFFFFFF),
  10. List<double> markerPoints = const [],
  11. void onSeekStart(
    1. double progress
    )?,
  12. void onSeekUpdate(
    1. double progress
    )?,
  13. void onSeekEnd(
    1. double progress
    )?,
})

Implementation

const VideoProgressBar({
  super.key,
  required this.played,
  this.buffered = 0.0,
  this.currentTime,
  this.totalTime,
  this.trackHeight = 1.5,
  this.playedColor = const Color(0xFF01BEBE),
  this.bufferedColor = const Color(0x26FFFFFF), // white 15%
  this.unplayedColor = const Color(0x4DFFFFFF), // white 30%
  this.markerPoints = const [],
  this.onSeekStart,
  this.onSeekUpdate,
  this.onSeekEnd,
});