MaterialTvVideoControlsThemeData constructor
const
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()?,
- 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
.
Implementation
const MaterialTvVideoControlsThemeData({
this.displaySeekBar = true,
this.automaticallyImplySkipNextButton = true,
this.automaticallyImplySkipPreviousButton = true,
this.toggleFullscreenOnDoublePress = true,
this.playAndPauseOnTap = false,
this.modifyVolumeOnScroll = true,
this.keyboardShortcuts,
this.visibleOnMount = false,
this.hideMouseOnControlsRemoval = false,
this.padding,
this.controlsHoverDuration = const Duration(seconds: 3),
this.controlsTransitionDuration = const Duration(milliseconds: 150),
this.bufferingIndicatorBuilder,
this.primaryButtonBar = const [],
this.topButtonBar = const [],
this.topButtonBarMargin = const EdgeInsets.symmetric(horizontal: 16.0),
this.bottomButtonBar = const [
MaterialTvSkipPreviousButton(),
MaterialTvPlayOrPauseButton(),
MaterialTvSkipNextButton(),
MaterialTvVolumeButton(),
MaterialTvPositionIndicator(),
Spacer(),
MaterialTvFullscreenButton(),
],
this.bottomButtonBarMargin = const EdgeInsets.symmetric(horizontal: 16.0),
this.buttonBarHeight = 56.0,
this.buttonBarButtonSize = 28.0,
this.buttonBarButtonColor = const Color(0xFFFFFFFF),
this.seekBarTransitionDuration = const Duration(milliseconds: 300),
this.seekBarThumbTransitionDuration = const Duration(milliseconds: 150),
this.seekBarMargin = const EdgeInsets.symmetric(horizontal: 16.0),
this.seekBarHeight = 3.2,
this.seekBarHoverHeight = 5.6,
this.seekBarContainerHeight = 36.0,
this.seekBarColor = const Color(0x3DFFFFFF),
this.seekBarHoverColor = const Color(0x3DFFFFFF),
this.seekBarPositionColor = const Color(0xFFFF0000),
this.seekBarBufferColor = const Color(0x3DFFFFFF),
this.seekBarThumbSize = 12.0,
this.seekBarThumbColor = const Color(0xFFFF0000),
this.volumeBarColor = const Color(0x3DFFFFFF),
this.volumeBarActiveColor = const Color(0xFFFFFFFF),
this.volumeBarThumbSize = 12.0,
this.volumeBarThumbColor = const Color(0xFFFFFFFF),
this.volumeBarTransitionDuration = const Duration(milliseconds: 150),
this.shiftSubtitlesOnControlsVisibilityChange = true,
});