PipFlutterPlayerControlsConfiguration constructor
const
PipFlutterPlayerControlsConfiguration({
- Color controlBarColor = Colors.black87,
- Color textColor = Colors.white,
- Color iconsColor = Colors.white,
- IconData playIcon = Icons.play_arrow_outlined,
- IconData pauseIcon = Icons.pause_outlined,
- IconData muteIcon = Icons.volume_up_outlined,
- IconData unMuteIcon = Icons.volume_off_outlined,
- IconData fullscreenEnableIcon = Icons.fullscreen_outlined,
- IconData fullscreenDisableIcon = Icons.fullscreen_exit_outlined,
- IconData skipBackIcon = Icons.replay_10_outlined,
- IconData skipForwardIcon = Icons.forward_10_outlined,
- bool enableFullscreen = true,
- bool enableMute = true,
- bool enableProgressText = true,
- bool enableProgressBar = true,
- bool enableProgressBarDrag = true,
- bool enablePlayPause = true,
- bool enableSkips = true,
- bool enableAudioTracks = true,
- Color progressBarPlayedColor = Colors.white,
- Color progressBarHandleColor = Colors.white,
- Color progressBarBufferedColor = Colors.white70,
- Color progressBarBackgroundColor = Colors.white60,
- Duration controlsHideTime = const Duration(milliseconds: 300),
- Widget customControlsBuilder(
- PipFlutterPlayerController controller,
- dynamic onPlayerVisibilityChanged()
- PipFlutterPlayerTheme? playerTheme,
- bool showControls = true,
- bool showControlsOnInitialize = true,
- double controlBarHeight = 48.0,
- Color liveTextColor = Colors.red,
- bool enableOverflowMenu = true,
- bool enablePlaybackSpeed = true,
- bool enableSubtitles = true,
- bool enableQualities = true,
- bool enablePip = true,
- bool enableRetry = true,
- List<
PipFlutterPlayerOverflowMenuItem> overflowMenuCustomItems = const [], - IconData overflowMenuIcon = Icons.more_vert_outlined,
- IconData pipMenuIcon = Icons.picture_in_picture_outlined,
- IconData playbackSpeedIcon = Icons.shutter_speed_outlined,
- IconData qualitiesIcon = Icons.hd_outlined,
- IconData subtitlesIcon = Icons.closed_caption_outlined,
- IconData audioTracksIcon = Icons.audiotrack_outlined,
- Color overflowMenuIconsColor = Colors.black,
- int forwardSkipTimeInMilliseconds = 10000,
- int backwardSkipTimeInMilliseconds = 10000,
- Color loadingColor = Colors.white,
- Widget? loadingWidget,
- Color backgroundColor = Colors.black,
- Color overflowModalColor = Colors.white,
- Color overflowModalTextColor = Colors.black,
Implementation
const PipFlutterPlayerControlsConfiguration({
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,
});