VideoProgressBar constructor
const
VideoProgressBar({
- Key? key,
- required double played,
- double buffered = 0.0,
- Duration? currentTime,
- Duration? totalTime,
- double trackHeight = 1.5,
- Color playedColor = const Color(0xFF01BEBE),
- Color bufferedColor = const Color(0x26FFFFFF),
- Color unplayedColor = const Color(0x4DFFFFFF),
- List<
double> markerPoints = const [], - void onSeekStart(
- double progress
- void onSeekUpdate(
- double progress
- void onSeekEnd(
- 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,
});