VideoControlsConfig class
Configuration class for video controls.
This class holds various settings and customizations for video controls.
Constructors
-
VideoControlsConfig.new({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(Duration position, Widget previewFrame)?, Widget playPauseBuilder(dynamic player, VoidCallback onTap)?, Widget progressBarBuilder(dynamic player, Duration current, Duration total)?, SeekPreviewPerformanceOptions performanceOptions = const SeekPreviewPerformanceOptions(), bool useDefaultControls = true, List<
SubtitleSource> ? subtitles, List<VideoResolution> ? resolutions}) -
const
Properties
- enablePlayPause → bool
-
Whether to enable the play/pause button.
final
- enableProgressBar → bool
-
Whether to enable the progress bar.
final
- enableProgressText → bool
-
Whether to enable the progress text.
final
- enableSeekPreview → bool
-
Whether to enable seek preview.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pauseIcon → IconData?
-
The icon to use for the pause button.
final
- performanceOptions → SeekPreviewPerformanceOptions
-
Performance options for seek preview
final
- playIcon → IconData?
-
The icon to use for the play button.
final
- playPauseBuilder → Widget Function(dynamic player, VoidCallback onTap)?
-
A builder function for the play/pause button.
final
- playPauseIconColor → Color?
-
The color of the play/pause icons.
final
- previewBuilder → Widget Function(Duration position, Widget previewFrame)?
-
A builder function for the seek preview.
final
- previewDecoration → BoxDecoration?
-
The decoration of the seek preview.
final
- previewHeight → double
-
The height of the seek preview.
final
- previewOffset → Offset
-
The offset of the seek preview.
final
- previewWidth → double
-
The width of the seek preview.
final
- progressBarBuilder → Widget Function(dynamic player, Duration current, Duration total)?
-
A builder function for the progress bar.
final
- progressBarColor → Color?
-
The color of the progress bar.
final
-
resolutions
→ List<
VideoResolution> ? -
List of available video resolutions
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subtitles
→ List<
SubtitleSource> ? -
List of subtitle files to be loaded
final
- useDefaultControls → bool
-
Whether to use the built-in default controls
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited