universal_video_controls library
This file is a part of media_kit (https://github.com/media-kit/media-kit).
Copyright © 2021 & onwards, Hitesh Kumar Saini saini123hitesh@gmail.com. All rights reserved. Use of this source code is governed by MIT license that can be found in the LICENSE file.
Classes
- CupertinoVideoControlsTheme
- Inherited widget which provides CupertinoVideoControlsThemeData to descendant widgets.
- CupertinoVideoControlsThemeData
- Theming related data for CupertinoVideoControls. These values are used to theme the descendant CupertinoVideoControls.
- FullscreenInheritedWidget
- Inherited widget used to identify whether parent VideoControls is in fullscreen or not.
- MaterialCustomButton
- Material design custom button.
- MaterialDesktopCustomButton
- MaterialDesktop design custom button.
- MaterialDesktopFullscreenButton
- MaterialDesktop design fullscreen button.
- MaterialDesktopPlayOrPauseButton
- A material design play/pause button.
- MaterialDesktopPlayOrPauseButtonState
- MaterialDesktopPositionIndicator
- MaterialDesktop design position indicator.
- MaterialDesktopPositionIndicatorState
- MaterialDesktopSeekBar
- Material design seek bar.
- MaterialDesktopSeekBarState
- MaterialDesktopVideoControlsTheme
- Inherited widget which provides MaterialDesktopVideoControlsThemeData to descendant widgets.
- MaterialDesktopVideoControlsThemeData
- Theming related data for MaterialDesktopVideoControls. These values are used to theme the descendant MaterialDesktopVideoControls.
- MaterialDesktopVolumeButton
- MaterialDesktop design volume button & slider.
- MaterialDesktopVolumeButtonState
- MaterialFullscreenButton
- Material design fullscreen button.
- MaterialPlayOrPauseButton
- A material design play/pause button.
- MaterialPlayOrPauseButtonState
- MaterialPositionIndicator
- Material design position indicator.
- MaterialPositionIndicatorState
- MaterialSeekBar
- Material design seek bar.
- MaterialSeekBarState
- MaterialVideoControlsTheme
- Inherited widget which provides MaterialVideoControlsThemeData to descendant widgets.
- MaterialVideoControlsThemeData
- Theming related data for MaterialVideoControls. These values are used to theme the descendant MaterialVideoControls.
- SubtitleView
- SubtitleView
- SubtitleViewConfiguration
- SubtitleViewConfiguration
- SubtitleViewState
- VideoControls
- Video
- VideoControlsState
- VideoStateInheritedWidget
- Inherited widget which provides VideoControlsState associated with the parent VideoControls widget to descendant widgets.
- VideoStateInheritedWidgetContextNotifier
-
This widget is used to notify the
VideoControlsState._contextNotifier
about the most recent BuildContext associated with the VideoControls widget. - VideoStateInheritedWidgetContextNotifierState
- VideoViewParameters
- VideoViewParameters
Constants
- kDefaultCupertinoVideoControlsThemeData → const CupertinoVideoControlsThemeData
- Default CupertinoVideoControlsThemeData.
- kDefaultCupertinoVideoControlsThemeDataFullscreen → const CupertinoVideoControlsThemeData
- Default CupertinoVideoControlsThemeData for fullscreen.
- kDefaultMaterialDesktopVideoControlsThemeData → const MaterialDesktopVideoControlsThemeData
- Default MaterialDesktopVideoControlsThemeData.
- kDefaultMaterialDesktopVideoControlsThemeDataFullscreen → const MaterialDesktopVideoControlsThemeData
- Default MaterialDesktopVideoControlsThemeData for fullscreen.
- kDefaultMaterialVideoControlsThemeData → const MaterialVideoControlsThemeData
- Default MaterialVideoControlsThemeData.
- kDefaultMaterialVideoControlsThemeDataFullscreen → const MaterialVideoControlsThemeData
- Default MaterialVideoControlsThemeData for fullscreen.
- NoVideoControls → const dynamic
- Disables VideoControls controls.
Properties
- lock → Lock
-
For synchronizing enterFullscreen & exitFullscreen operations.
final
Functions
-
AdaptiveVideoControls(
VideoControlsState state) → Widget - VideoControls controls based on the running platform.
-
CupertinoVideoControls(
VideoControlsState state) → Widget - VideoControls controls which use Cupertino design.
-
defaultEnterNativeFullscreen(
) → Future< void> - Makes the native window enter fullscreen.
-
defaultExitNativeFullscreen(
) → Future< void> - Makes the native window exit fullscreen.
-
enterFullscreen(
BuildContext context) → Future< void> - Makes the VideoControls present in the current BuildContext enter fullscreen.
-
exitFullscreen(
BuildContext context) → Future< void> - Makes the VideoControls present in the current BuildContext exit fullscreen.
-
isFullscreen(
BuildContext context) → bool - Whether a VideoControls present in the current BuildContext is in fullscreen or not.
-
MaterialDesktopVideoControls(
VideoControlsState state) → Widget - VideoControls controls which use Material design.
-
MaterialVideoControls(
VideoControlsState state) → Widget - VideoControls controls which use Material design.
-
toggleFullscreen(
BuildContext context) → Future< void> - Toggles fullscreen for the VideoControls present in the current BuildContext.
Typedefs
- VideoControlsBuilder = Widget Function(VideoControlsState state)