BSVideoPlayer constructor

const BSVideoPlayer({
  1. Key? key,
  2. required String videoURl,
  3. required bool hasPlayBackSpeed,
  4. required Function? onFinishedVideo,
  5. double playbackTextFontSize = 20.0,
  6. double playbackIconSize = 100.0,
  7. Color iconContainerColor = Colors.black26,
  8. Color iconColor = Colors.white,
  9. double playbackPadding = 20.0,
  10. Color playbackTextFontColor = Colors.white,
  11. Color playbackMenuItemFontColor = Colors.black,
  12. double playbackMenuItemFontSize = 20.0,
  13. double playbackTextVerticalPadding = 20.0,
  14. double playbackTextHorizontalPadding = 16.0,
  15. Color containerBackgroundColor = const Color(0xFF22222B),
  16. Color bufferedColor = const Color(0xFFF5F5F5),
  17. Color progressColor = const Color(0xFF253861),
  18. Color circleProgressIndicatorColor = const Color(0xFF253861),
  19. List<double> playbackSpeeds = const <double>[0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0],
})

Implementation

const BSVideoPlayer({
super.key,
required this.videoURl,
required this.hasPlayBackSpeed,
required this.onFinishedVideo,
this.playbackTextFontSize = 20.0,
this.playbackIconSize = 100.0,
this.iconContainerColor = Colors.black26,
this.iconColor = Colors.white,
this.playbackPadding = 20.0,
this.playbackTextFontColor = Colors.white,
this.playbackMenuItemFontColor = Colors.black,
this.playbackMenuItemFontSize = 20.0,
this.playbackTextVerticalPadding = 20.0,
this.playbackTextHorizontalPadding = 16.0,
this.containerBackgroundColor = const Color(0xFF22222B),
this.bufferedColor = const Color(0xFFF5F5F5),
this.progressColor = const Color(0xFF253861),
this.circleProgressIndicatorColor = const Color(0xFF253861),
this.playbackSpeeds = const <double>[
0.25,
0.5,
0.75,
1.0,
1.25,
1.5,
1.75,
2.0
],
});