MaterialDesktopVideoControlsThemeData constructor

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

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

Implementation

const MaterialDesktopVideoControlsThemeData({
  this.displaySeekBar = true,
  this.automaticallyImplySkipNextButton = true,
  this.automaticallyImplySkipPreviousButton = true,
  this.toggleFullscreenOnDoublePress = true,
  this.modifyVolumeOnScroll = true,
  this.keyboardShortcuts,
  this.visibleOnMount = 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 [
    MaterialDesktopSkipPreviousButton(),
    MaterialDesktopPlayOrPauseButton(),
    MaterialDesktopSkipNextButton(),
    MaterialDesktopVolumeButton(),
    MaterialDesktopPositionIndicator(),
    Spacer(),
    MaterialDesktopFullscreenButton(),
  ],
  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,
});