BetterPlayerControlsConfiguration constructor

const BetterPlayerControlsConfiguration({
  1. Color controlBarColor = Colors.black87,
  2. Color textColor = Colors.white,
  3. Color iconsColor = Colors.white,
  4. IconData playIcon = Icons.play_arrow_outlined,
  5. IconData pauseIcon = Icons.pause_outlined,
  6. IconData muteIcon = Icons.volume_up_outlined,
  7. IconData unMuteIcon = Icons.volume_off_outlined,
  8. IconData fullscreenEnableIcon = Icons.fullscreen_outlined,
  9. IconData fullscreenDisableIcon = Icons.fullscreen_exit_outlined,
  10. IconData skipBackIcon = Icons.replay_10_outlined,
  11. IconData skipForwardIcon = Icons.forward_10_outlined,
  12. bool enableFullscreen = true,
  13. bool enableMute = true,
  14. bool enableProgressText = true,
  15. bool enableProgressBar = true,
  16. bool enableProgressBarDrag = true,
  17. bool enablePlayPause = true,
  18. bool enableSkips = true,
  19. bool enableAudioTracks = true,
  20. Color progressBarPlayedColor = Colors.white,
  21. Color progressBarHandleColor = Colors.white,
  22. Color progressBarBufferedColor = Colors.white70,
  23. Color progressBarBackgroundColor = Colors.white60,
  24. Duration controlsHideTime = const Duration(milliseconds: 300),
  25. Widget customControlsBuilder(
    1. BetterPlayerController controller,
    2. dynamic onPlayerVisibilityChanged(
      1. bool
      )
    )?,
  26. BetterPlayerTheme? playerTheme,
  27. bool showControls = true,
  28. bool showControlsOnInitialize = true,
  29. double controlBarHeight = 48.0,
  30. Color liveTextColor = Colors.red,
  31. bool enableOverflowMenu = true,
  32. bool enablePlaybackSpeed = true,
  33. bool enableSubtitles = true,
  34. bool enableQualities = true,
  35. bool enablePip = true,
  36. bool enableRetry = true,
  37. List<BetterPlayerOverflowMenuItem> overflowMenuCustomItems = const [],
  38. IconData overflowMenuIcon = Icons.more_vert_outlined,
  39. IconData pipMenuIcon = Icons.picture_in_picture_outlined,
  40. IconData playbackSpeedIcon = Icons.shutter_speed_outlined,
  41. IconData qualitiesIcon = Icons.hd_outlined,
  42. IconData subtitlesIcon = Icons.closed_caption_outlined,
  43. IconData audioTracksIcon = Icons.audiotrack_outlined,
  44. Color overflowMenuIconsColor = Colors.black,
  45. int forwardSkipTimeInMilliseconds = 10000,
  46. int backwardSkipTimeInMilliseconds = 10000,
  47. Color loadingColor = Colors.white,
  48. Widget? loadingWidget,
  49. Color backgroundColor = Colors.black,
  50. Color overflowModalColor = Colors.white,
  51. Color overflowModalTextColor = Colors.black,
})

Implementation

const BetterPlayerControlsConfiguration({
  this.controlBarColor = Colors.black87,
  this.textColor = Colors.white,
  this.iconsColor = Colors.white,
  this.playIcon = Icons.play_arrow_outlined,
  this.pauseIcon = Icons.pause_outlined,
  this.muteIcon = Icons.volume_up_outlined,
  this.unMuteIcon = Icons.volume_off_outlined,
  this.fullscreenEnableIcon = Icons.fullscreen_outlined,
  this.fullscreenDisableIcon = Icons.fullscreen_exit_outlined,
  this.skipBackIcon = Icons.replay_10_outlined,
  this.skipForwardIcon = Icons.forward_10_outlined,
  this.enableFullscreen = true,
  this.enableMute = true,
  this.enableProgressText = true,
  this.enableProgressBar = true,
  this.enableProgressBarDrag = true,
  this.enablePlayPause = true,
  this.enableSkips = true,
  this.enableAudioTracks = true,
  this.progressBarPlayedColor = Colors.white,
  this.progressBarHandleColor = Colors.white,
  this.progressBarBufferedColor = Colors.white70,
  this.progressBarBackgroundColor = Colors.white60,
  this.controlsHideTime = const Duration(milliseconds: 300),
  this.customControlsBuilder,
  this.playerTheme,
  this.showControls = true,
  this.showControlsOnInitialize = true,
  this.controlBarHeight = 48.0,
  this.liveTextColor = Colors.red,
  this.enableOverflowMenu = true,
  this.enablePlaybackSpeed = true,
  this.enableSubtitles = true,
  this.enableQualities = true,
  this.enablePip = true,
  this.enableRetry = true,
  this.overflowMenuCustomItems = const [],
  this.overflowMenuIcon = Icons.more_vert_outlined,
  this.pipMenuIcon = Icons.picture_in_picture_outlined,
  this.playbackSpeedIcon = Icons.shutter_speed_outlined,
  this.qualitiesIcon = Icons.hd_outlined,
  this.subtitlesIcon = Icons.closed_caption_outlined,
  this.audioTracksIcon = Icons.audiotrack_outlined,
  this.overflowMenuIconsColor = Colors.black,
  this.forwardSkipTimeInMilliseconds = 10000,
  this.backwardSkipTimeInMilliseconds = 10000,
  this.loadingColor = Colors.white,
  this.loadingWidget,
  this.backgroundColor = Colors.black,
  this.overflowModalColor = Colors.white,
  this.overflowModalTextColor = Colors.black,
});