FluTube class

Inheritance

Constructors

FluTube(dynamic _videourls, {Key key, double aspectRatio, bool autoInitialize = false, bool autoPlay = false, Duration startAt, bool looping = false, Widget placeholder, bool showControls = true, bool fullscreenByDefault = false, bool showThumb = true, bool allowMuting = true, bool allowScreenSleep = false, bool allowFullScreen = true, List<DeviceOrientation> deviceOrientationAfterFullscreen, List<SystemUiOverlay> systemOverlaysAfterFullscreen, VoidCallback onVideoStart, VoidCallback onVideoEnd})
FluTube.playlist(dynamic _videourls, {Key key, double aspectRatio, bool autoInitialize = false, bool autoPlay = false, Duration startAt, Widget placeholder, bool looping = false, bool showControls = true, bool fullscreenByDefault = false, bool showThumb = true, bool allowMuting = true, bool allowScreenSleep = false, bool allowFullScreen = true, List<DeviceOrientation> deviceOrientationAfterFullscreen, List<SystemUiOverlay> systemOverlaysAfterFullscreen, VoidCallback onVideoStart, VoidCallback onVideoEnd})

Properties

allowFullScreen bool
Show fullscreen button.
final
allowMuting bool
Show mute icon
final
allowScreenSleep bool
Allow screen to sleep
final
aspectRatio double
The Aspect Ratio of the Video. Important to get the correct size of the video! [...]
final
autoInitialize bool
Initialize the Video on Startup. This will prep the video for playback.
final
autoPlay bool
Play the video as soon as it's displayed
final
deviceOrientationAfterFullscreen List<DeviceOrientation>
Device orientation when leaving fullscreen.
final
fullscreenByDefault bool
Play video directly in fullscreen
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
looping bool
Whether or not the video should loop
final
onVideoEnd VoidCallback
Video end
final
onVideoStart VoidCallback
Video events Video start
final
placeholder Widget
The placeholder is displayed underneath the Video before it is initialized or played.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
showControls bool
Whether or not to show the controls
final
showThumb bool
Whether or not to show the video thumbnail when the video did not start playing.
final
startAt Duration
Start video at a certain position
final
systemOverlaysAfterFullscreen List<SystemUiOverlay>
System overlays when exiting fullscreen.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() FluTubeState
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. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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. [...]
@nonVirtual, inherited