CupertinoControls class

Inheritance

Constructors

CupertinoControls({Key? key, Duration hideDuration = const Duration(seconds: 4), Color backgroundColor = const Color(0x90000000), Color color = const Color(0xFFFFFFFF), IconData subtitleON = Icons.closed_caption, IconData subtitleOFF = Icons.closed_caption_off_outlined, IconData speed = Icons.speed, IconData fullscreenON = CupertinoIcons.arrow_up_left_arrow_down_right, IconData fullscreenOFF = CupertinoIcons.arrow_down_right_arrow_up_left, IconData volumeON = Icons.volume_up, IconData volumeOFF = Icons.volume_off, IconData error = Icons.error, IconData skipForward = CupertinoIcons.gobackward_15, IconData skipBack = CupertinoIcons.gobackward_15, bool enableSubtitle = true, bool enableSpeed = true, bool enableSkip = true, bool enableFullscreen = true, bool enableVolume = true, bool enablePlay = true, bool enablePosition = true, bool enableRemaining = true, PositionBuilder? positionBuilder, RemainingBuilder? remainingBuilder, FlVideoPlayerProgressColors progressColors = const FlVideoPlayerProgressColors(played: Color(0x78ffffff), handle: Color(0xffffffff), buffered: Color(0x3cffffff), background: Color(0x14ffffff)), 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), FlVideoControlsErrorBuilder? errorBuilder, FlVideoControlsTap? onTap, FlVideoControlsProgressDrag? onDragProgress, bool enableBottomBar = true})

Properties

backgroundColor Color
final
color Color
final
enableBottomBar bool
Enable BottomBar
final
enableFullscreen bool
Enable Fullscreen
final
enablePlay bool
Enable Play
final
enablePosition bool
Enable Position
final
enableRemaining bool
Enable Remaining
final
enableSkip bool
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
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 PositionBuilder?
position
final
progressColors FlVideoPlayerProgressColors
final
remainingBuilder RemainingBuilder?
remaining
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skipBack IconData
final
skipForward IconData
final
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<CupertinoControls>
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