MaterialTvVideoControlsThemeData constructor

const MaterialTvVideoControlsThemeData({
  1. bool displaySeekBar = true,
  2. bool automaticallyImplySkipNextButton = true,
  3. bool automaticallyImplySkipPreviousButton = true,
  4. bool toggleFullscreenOnDoublePress = true,
  5. bool playAndPauseOnTap = false,
  6. bool modifyVolumeOnScroll = true,
  7. Map<ShortcutActivator, VoidCallback>? keyboardShortcuts,
  8. bool visibleOnMount = false,
  9. bool hideMouseOnControlsRemoval = false,
  10. EdgeInsets? padding,
  11. Duration controlsHoverDuration = const Duration(seconds: 3),
  12. Duration controlsTransitionDuration = const Duration(milliseconds: 150),
  13. Widget bufferingIndicatorBuilder(
    1. BuildContext
    )?,
  14. List<Widget> primaryButtonBar = const [],
  15. List<Widget> topButtonBar = const [],
  16. EdgeInsets topButtonBarMargin = const EdgeInsets.symmetric(horizontal: 16.0),
  17. List<Widget> bottomButtonBar = const [MaterialTvSkipPreviousButton(), MaterialTvPlayOrPauseButton(), MaterialTvSkipNextButton(), MaterialTvVolumeButton(), MaterialTvPositionIndicator(), Spacer(), MaterialTvFullscreenButton()],
  18. EdgeInsets bottomButtonBarMargin = const EdgeInsets.symmetric(horizontal: 16.0),
  19. double buttonBarHeight = 56.0,
  20. double buttonBarButtonSize = 28.0,
  21. Color buttonBarButtonColor = const Color(0xFFFFFFFF),
  22. Duration seekBarTransitionDuration = const Duration(milliseconds: 300),
  23. Duration seekBarThumbTransitionDuration = const Duration(milliseconds: 150),
  24. EdgeInsets seekBarMargin = const EdgeInsets.symmetric(horizontal: 16.0),
  25. double seekBarHeight = 3.2,
  26. double seekBarHoverHeight = 5.6,
  27. double seekBarContainerHeight = 36.0,
  28. Color seekBarColor = const Color(0x3DFFFFFF),
  29. Color seekBarHoverColor = const Color(0x3DFFFFFF),
  30. Color seekBarPositionColor = const Color(0xFFFF0000),
  31. Color seekBarBufferColor = const Color(0x3DFFFFFF),
  32. double seekBarThumbSize = 12.0,
  33. Color seekBarThumbColor = const Color(0xFFFF0000),
  34. Color volumeBarColor = const Color(0x3DFFFFFF),
  35. Color volumeBarActiveColor = const Color(0xFFFFFFFF),
  36. double volumeBarThumbSize = 12.0,
  37. Color volumeBarThumbColor = const Color(0xFFFFFFFF),
  38. Duration volumeBarTransitionDuration = const Duration(milliseconds: 150),
  39. 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,
});