VideoControlsConfig constructor
const
VideoControlsConfig({
- bool enablePlayPause = true,
- bool enableProgressBar = true,
- bool enableProgressText = true,
- Color? progressBarColor,
- IconData? playIcon = Icons.play_circle_filled,
- IconData? pauseIcon = Icons.pause_circle_filled,
- Color? playPauseIconColor,
- bool enableSeekPreview = false,
- double previewWidth = 120.0,
- double previewHeight = 80.0,
- Offset previewOffset = const Offset(0, -90),
- BoxDecoration? previewDecoration,
- Widget previewBuilder()?,
- Widget playPauseBuilder(
- dynamic player,
- VoidCallback onTap
- Widget progressBarBuilder()?,
- SeekPreviewPerformanceOptions performanceOptions = const SeekPreviewPerformanceOptions(),
- bool useDefaultControls = true,
- List<
SubtitleSource> ? subtitles, - List<
VideoResolution> ? resolutions,
Implementation
const VideoControlsConfig({
this.enablePlayPause = true,
this.enableProgressBar = true,
this.enableProgressText = true,
this.progressBarColor,
this.playIcon = Icons.play_circle_filled,
this.pauseIcon = Icons.pause_circle_filled,
this.playPauseIconColor,
this.enableSeekPreview = false,
this.previewWidth = 120.0,
this.previewHeight = 80.0,
this.previewOffset = const Offset(0, -90),
this.previewDecoration,
this.previewBuilder,
this.playPauseBuilder,
this.progressBarBuilder,
this.performanceOptions = const SeekPreviewPerformanceOptions(),
this.useDefaultControls = true,
this.subtitles,
this.resolutions,
});