MaterialVideoControlsThemeData constructor
const
MaterialVideoControlsThemeData({
- bool displaySeekBar = true,
- bool automaticallyImplySkipNextButton = true,
- bool automaticallyImplySkipPreviousButton = true,
- bool volumeGesture = false,
- bool brightnessGesture = false,
- bool seekGesture = false,
- bool gesturesEnabledWhileControlsVisible = true,
- bool seekOnDoubleTap = false,
- bool seekOnDoubleTapEnabledWhileControlsVisible = true,
- List<
int> seekOnDoubleTapLayoutTapsRatios = const [1, 1, 1], - List<
int> seekOnDoubleTapLayoutWidgetRatios = const [1, 1, 1], - bool visibleOnMount = false,
- bool speedUpOnLongPress = false,
- double speedUpFactor = 2.0,
- double verticalGestureSensitivity = 100,
- double horizontalGestureSensitivity = 1000,
- Color? backdropColor = const Color(0x66000000),
- EdgeInsets? padding,
- Duration controlsHoverDuration = const Duration(seconds: 3),
- Duration controlsTransitionDuration = const Duration(milliseconds: 300),
- Widget bufferingIndicatorBuilder()?,
- Widget volumeIndicatorBuilder()?,
- Widget brightnessIndicatorBuilder()?,
- Widget seekIndicatorBuilder()?,
- Widget speedUpIndicatorBuilder()?,
- List<
Widget> primaryButtonBar = const [Spacer(flex: 2), MaterialSkipPreviousButton(), Spacer(), MaterialPlayOrPauseButton(iconSize: 48.0), Spacer(), MaterialSkipNextButton(), Spacer(flex: 2)], - List<
Widget> topButtonBar = const [], - EdgeInsets topButtonBarMargin = const EdgeInsets.symmetric(horizontal: 16.0),
- List<
Widget> bottomButtonBar = const [MaterialPositionIndicator(), Spacer(), MaterialFullscreenButton()], - EdgeInsets bottomButtonBarMargin = const EdgeInsets.only(left: 16.0, right: 8.0),
- double buttonBarHeight = 56.0,
- double buttonBarButtonSize = 24.0,
- Color buttonBarButtonColor = const Color(0xFFFFFFFF),
- EdgeInsets seekBarMargin = EdgeInsets.zero,
- double seekBarHeight = 2.4,
- double seekBarContainerHeight = 36.0,
- Color seekBarColor = const Color(0x3DFFFFFF),
- Color seekBarPositionColor = const Color(0xFFFF0000),
- Color seekBarBufferColor = const Color(0x3DFFFFFF),
- double seekBarThumbSize = 12.8,
- Color seekBarThumbColor = const Color(0xFFFF0000),
- Alignment seekBarAlignment = Alignment.bottomCenter,
- bool shiftSubtitlesOnControlsVisibilityChange = false,
Theming related data for MaterialVideoControls. These values are used to theme the descendant MaterialVideoControls.
Implementation
const MaterialVideoControlsThemeData({
this.displaySeekBar = true,
this.automaticallyImplySkipNextButton = true,
this.automaticallyImplySkipPreviousButton = true,
this.volumeGesture = false,
this.brightnessGesture = false,
this.seekGesture = false,
this.gesturesEnabledWhileControlsVisible = true,
this.seekOnDoubleTap = false,
this.seekOnDoubleTapEnabledWhileControlsVisible = true,
this.seekOnDoubleTapLayoutTapsRatios = const [1, 1, 1],
this.seekOnDoubleTapLayoutWidgetRatios = const [1, 1, 1],
this.visibleOnMount = false,
this.speedUpOnLongPress = false,
this.speedUpFactor = 2.0,
this.verticalGestureSensitivity = 100,
this.horizontalGestureSensitivity = 1000,
this.backdropColor = const Color(0x66000000),
this.padding,
this.controlsHoverDuration = const Duration(seconds: 3),
this.controlsTransitionDuration = const Duration(milliseconds: 300),
this.bufferingIndicatorBuilder,
this.volumeIndicatorBuilder,
this.brightnessIndicatorBuilder,
this.seekIndicatorBuilder,
this.speedUpIndicatorBuilder,
this.primaryButtonBar = const [
Spacer(flex: 2),
MaterialSkipPreviousButton(),
Spacer(),
MaterialPlayOrPauseButton(iconSize: 48.0),
Spacer(),
MaterialSkipNextButton(),
Spacer(flex: 2),
],
this.topButtonBar = const [],
this.topButtonBarMargin = const EdgeInsets.symmetric(horizontal: 16.0),
this.bottomButtonBar = const [
MaterialPositionIndicator(),
Spacer(),
MaterialFullscreenButton(),
],
this.bottomButtonBarMargin = const EdgeInsets.only(left: 16.0, right: 8.0),
this.buttonBarHeight = 56.0,
this.buttonBarButtonSize = 24.0,
this.buttonBarButtonColor = const Color(0xFFFFFFFF),
this.seekBarMargin = EdgeInsets.zero,
this.seekBarHeight = 2.4,
this.seekBarContainerHeight = 36.0,
this.seekBarColor = const Color(0x3DFFFFFF),
this.seekBarPositionColor = const Color(0xFFFF0000),
this.seekBarBufferColor = const Color(0x3DFFFFFF),
this.seekBarThumbSize = 12.8,
this.seekBarThumbColor = const Color(0xFFFF0000),
this.seekBarAlignment = Alignment.bottomCenter,
this.shiftSubtitlesOnControlsVisibilityChange = false,
});