MaterialControls class

Inheritance

Constructors

MaterialControls({Key? key, FlVideoPlayerProgressColors progressColors = const FlVideoPlayerProgressColors(played: Color(0x80FFFFFF), handle: Color(0xFFFFFFFF), buffered: Color(0x55FFFFFF), background: Color(0x35FFFFFF)), IconData subtitleON = Icons.closed_caption, IconData subtitleOFF = Icons.closed_caption_off_outlined, IconData speed = Icons.speed, IconData fullscreenON = Icons.fullscreen, IconData fullscreenOFF = Icons.fullscreen_exit, IconData volumeON = Icons.volume_up, IconData volumeOFF = Icons.volume_off, IconData error = Icons.error, Color backgroundColor = const Color(0x90000000), Color color = const Color(0xFFFFFFFF), Duration hideDuration = const Duration(seconds: 4), bool enableSubtitle = true, bool enableSpeed = true, bool enableFullscreen = true, bool enableVolume = true, bool enablePlay = true, bool enablePosition = true, bool enableBottomBar = true, bool isLive = false, List<double> playbackSpeeds = const [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2], Widget loading = const CircularProgressIndicator(color: Colors.white), PositionAndAllBuilder? positionBuilder, FlVideoControlsErrorBuilder? errorBuilder, FlVideoControlsTap? onTap, FlVideoControlsProgressDrag? onDragProgress})

Properties

backgroundColor Color
final
color Color
All icon and text color
final
enableBottomBar bool
Enable BottomBar
final
enableFullscreen bool
Enable Fullscreen
final
enablePlay bool
Enable Play
final
enablePosition bool
Enable Position
final
enableSpeed bool
Enable Speed
final
enableSubtitle bool
Enable Subtitle
final
enableVolume bool
Enable Volume
final
error IconData
error
final
errorBuilder FlVideoControlsErrorBuilder?
errorBuilder
final
fullscreenOFF IconData
final
fullscreenON IconData
final
hashCode int
The hash code for this object.
no setterinherited
hideDuration Duration
Hide the Controls,
final
isLive bool
is Live
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loading Widget
loading
final
onDragProgress FlVideoControlsProgressDrag?
Sliding progress bar
final
onTap FlVideoControlsTap?
tap event
final
playbackSpeeds List<double>
Defines the set of allowed playback speeds user can change
final
positionBuilder PositionAndAllBuilder?
position
final
progressColors FlVideoPlayerProgressColors
ProgressColor
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed IconData
final
subtitleOFF IconData
final
subtitleON IconData
final
volumeOFF IconData
final
volumeON IconData
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<MaterialControls>
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