MaterialTvVideoControlsThemeData class

Theming related data for MaterialDesktopVideoControls. These values are used to theme the descendant MaterialDesktopVideoControls.

Constructors

MaterialTvVideoControlsThemeData({bool displaySeekBar = true, bool automaticallyImplySkipNextButton = true, bool automaticallyImplySkipPreviousButton = true, bool toggleFullscreenOnDoublePress = true, bool playAndPauseOnTap = false, bool modifyVolumeOnScroll = true, Map<ShortcutActivator, VoidCallback>? keyboardShortcuts, bool visibleOnMount = false, bool hideMouseOnControlsRemoval = false, EdgeInsets? padding, Duration controlsHoverDuration = const Duration(seconds: 3), Duration controlsTransitionDuration = const Duration(milliseconds: 150), Widget bufferingIndicatorBuilder(BuildContext)?, List<Widget> primaryButtonBar = const [], List<Widget> topButtonBar = const [], EdgeInsets topButtonBarMargin = const EdgeInsets.symmetric(horizontal: 16.0), List<Widget> bottomButtonBar = const [MaterialTvSkipPreviousButton(), MaterialTvPlayOrPauseButton(), MaterialTvSkipNextButton(), MaterialTvVolumeButton(), MaterialTvPositionIndicator(), Spacer(), MaterialTvFullscreenButton()], EdgeInsets bottomButtonBarMargin = const EdgeInsets.symmetric(horizontal: 16.0), double buttonBarHeight = 56.0, double buttonBarButtonSize = 28.0, Color buttonBarButtonColor = const Color(0xFFFFFFFF), Duration seekBarTransitionDuration = const Duration(milliseconds: 300), Duration seekBarThumbTransitionDuration = const Duration(milliseconds: 150), EdgeInsets seekBarMargin = const EdgeInsets.symmetric(horizontal: 16.0), double seekBarHeight = 3.2, double seekBarHoverHeight = 5.6, double seekBarContainerHeight = 36.0, Color seekBarColor = const Color(0x3DFFFFFF), Color seekBarHoverColor = const Color(0x3DFFFFFF), Color seekBarPositionColor = const Color(0xFFFF0000), Color seekBarBufferColor = const Color(0x3DFFFFFF), double seekBarThumbSize = 12.0, Color seekBarThumbColor = const Color(0xFFFF0000), Color volumeBarColor = const Color(0x3DFFFFFF), Color volumeBarActiveColor = const Color(0xFFFFFFFF), double volumeBarThumbSize = 12.0, Color volumeBarThumbColor = const Color(0xFFFFFFFF), Duration volumeBarTransitionDuration = const Duration(milliseconds: 150), bool shiftSubtitlesOnControlsVisibilityChange = true})
Theming related data for MaterialDesktopVideoControls. These values are used to theme the descendant MaterialDesktopVideoControls.
const

Properties

automaticallyImplySkipNextButton bool
Whether a skip next button should be displayed if there are more than one videos in the playlist.
final
automaticallyImplySkipPreviousButton bool
Whether a skip previous button should be displayed if there are more than one videos in the playlist.
final
bottomButtonBar List<Widget>
Buttons to be displayed in the bottom button bar.
final
bottomButtonBarMargin EdgeInsets
Margin around the bottom button bar.
final
bufferingIndicatorBuilder Widget Function(BuildContext)?
Builder for the buffering indicator.
final
buttonBarButtonColor Color
Color of the button bar buttons.
final
buttonBarButtonSize double
Size of the button bar buttons.
final
buttonBarHeight double
Height of the button bar.
final
controlsHoverDuration Duration
Duration after which the controls will be hidden when there is no mouse movement.
final
controlsTransitionDuration Duration
Duration for which the controls will be animated when shown or hidden.
final
displaySeekBar bool
Whether to display seek bar.
final
hashCode int
The hash code for this object.
no setterinherited
hideMouseOnControlsRemoval bool
Whether to hide mouse on controls removal.(will need to move the mouse to be hidden check issue: https://github.com/flutter/flutter/issues/76622) works on macos without moving the mouse
final
keyboardShortcuts Map<ShortcutActivator, VoidCallback>?
Keyboards shortcuts.
final
modifyVolumeOnScroll bool
Modify volume on mouse scroll.
final
padding EdgeInsets?
Padding around the controls.
final
playAndPauseOnTap bool
Whether to toggle play and pause on tap.
final
primaryButtonBar List<Widget>
Buttons to be displayed in the primary button bar.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seekBarBufferColor Color
Color of the playback buffer section in the seek bar.
final
seekBarColor Color
Color of the seek bar.
final
seekBarContainerHeight double
Height of the seek bar Container.
final
seekBarHeight double
Height of the seek bar.
final
seekBarHoverColor Color
Color of the hovered section in the seek bar.
final
seekBarHoverHeight double
Height of the seek bar when hovered.
final
seekBarMargin EdgeInsets
Margin around the seek bar.
final
seekBarPositionColor Color
Color of the playback position section in the seek bar.
final
seekBarThumbColor Color
Color of the seek bar thumb.
final
seekBarThumbSize double
Size of the seek bar thumb.
final
seekBarThumbTransitionDuration Duration
Duration for which the seek bar thumb will be animated when the user seeks.
final
seekBarTransitionDuration Duration
Duration for which the seek bar will be animated when the user seeks.
final
shiftSubtitlesOnControlsVisibilityChange bool
Whether to shift the subtitles upwards when the controls are visible.
final
toggleFullscreenOnDoublePress bool
Whether to toggle fullscreen on double press.
final
topButtonBar List<Widget>
Buttons to be displayed in the top button bar.
final
topButtonBarMargin EdgeInsets
Margin around the top button bar.
final
visibleOnMount bool
Whether the controls are initially visible.
final
volumeBarActiveColor Color
Color of the active region in the volume bar.
final
volumeBarColor Color
Color of the volume bar.
final
volumeBarThumbColor Color
Color of the volume bar thumb.
final
volumeBarThumbSize double
Size of the volume bar thumb.
final
volumeBarTransitionDuration Duration
Duration for which the volume bar will be animated when the user hovers.
final

Methods

copyWith({bool? displaySeekBar, bool? automaticallyImplySkipNextButton, bool? automaticallyImplySkipPreviousButton, bool? toggleFullscreenOnDoublePress, bool? playAndPauseOnTap, bool? modifyVolumeOnScroll, Map<ShortcutActivator, VoidCallback>? keyboardShortcuts, bool? visibleOnMount, bool? hideMouseOnControlsRemoval, Duration? controlsHoverDuration, Duration? controlsTransitionDuration, Widget bufferingIndicatorBuilder(BuildContext)?, List<Widget>? topButtonBar, EdgeInsets? topButtonBarMargin, List<Widget>? bottomButtonBar, EdgeInsets? bottomButtonBarMargin, double? buttonBarHeight, double? buttonBarButtonSize, Color? buttonBarButtonColor, Duration? seekBarTransitionDuration, Duration? seekBarThumbTransitionDuration, EdgeInsets? seekBarMargin, double? seekBarHeight, double? seekBarHoverHeight, double? seekBarContainerHeight, Color? seekBarColor, Color? seekBarHoverColor, Color? seekBarPositionColor, Color? seekBarBufferColor, double? seekBarThumbSize, Color? seekBarThumbColor, Color? volumeBarColor, Color? volumeBarActiveColor, double? volumeBarThumbSize, Color? volumeBarThumbColor, Duration? volumeBarTransitionDuration, bool? shiftSubtitlesOnControlsVisibilityChange}) MaterialTvVideoControlsThemeData
Creates a copy of this MaterialTvVideoControlsThemeData with the given fields replaced by the non-null parameter values.
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