VideoViewer class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- VideoViewer
Constructors
-
VideoViewer({Key? key, required Map<
String, VideoSource> source, VideoViewerStyle? style, VideoViewerController? controller, bool looping = false, bool autoPlay = false, double defaultAspectRatio = 16 / 9, int rewindAmount = -10, int forwardAmount = 10, bool onFullscreenFixLandscape = true, VideoViewerLanguage language = VideoViewerLanguage.en, VideoViewerVolumeManager volumeManager = VideoViewerVolumeManager.video, bool enableFullscreenScale = true, bool enableVerticalSwapingGesture = true, bool enableHorizontalSwapingGesture = true, bool enableShowReplayIconAtVideoEnd = true, bool enableChat = false}) -
const
Properties
- autoPlay → bool
-
Once the video is initialized, it will be played
final
- controller → VideoViewerController?
-
Controls a platform video viewer, and provides updates when the state is
changing.
final
- defaultAspectRatio → double
-
It is the Aspect Ratio that the widget.style.loading will take when the video
is not initialized yet
final
- enableChat → bool
-
final
- enableFullscreenScale → bool
-
When the video is fullscreen and landscape mode, It's able to scale itself until the screen boundaries
final
- enableHorizontalSwapingGesture → bool
-
On HorizontalSwapingGesture the video is able to control the forward and rewind of itself
final
- enableShowReplayIconAtVideoEnd → bool
-
final
- enableVerticalSwapingGesture → bool
-
On VerticalSwapingGesture the video is able to control the video volume or device volume.
final
- forwardAmount → int
-
It is the amount of seconds that the video will be advanced when double tapping.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- language → VideoViewerLanguage
-
It's the custom language can you set to the VideoViewer.
final
- looping → bool
-
Sets whether or not the video should loop after playing once.
final
- onFullscreenFixLandscape → bool
-
If it is
true
, when entering the fullscreen it will be fixed in landscape mode and it will not be possible to rotate it in portrait. If it isfalse
, you can rotate the entire screen in any position.final - rewindAmount → int
-
It is the amount of seconds that the video will be delayed when double tapping.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
source
→ Map<
String, VideoSource> -
Receive a list of all the resources to be played.
final
- style → VideoViewerStyle?
-
It is an argument where you can change the design of almost the entire VideoViewer
final
- volumeManager → VideoViewerVolumeManager
-
On VerticalSwapingGesture the video is able to control the video volume or device volume.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → VideoViewerState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited