VideoProgressIndicator class
A progress indicator used to display or control the playing and buffering status of video.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- VideoProgressIndicator
Constructors
- VideoProgressIndicator({Key? key, required VideoProgress? progress, EdgeInsets? padding = EdgeInsets.zero, Color? backgroundColor, Color? bufferedColor, Color? playedColor, Color? thumbColor, double? indicatorHeight = 5.0, double? thumbSize = 12.0, bool? allowScrubbing = false, void onScrubStart()?, void onScrubbing(int position)?, void onScrubEnd()?})
-
const
Properties
- allowScrubbing → bool?
-
The flag to allow scrub indicator to control the progress of video player.
final
- backgroundColor → Color?
-
The background color of indicator, defaults to
Colors.grey.withOpacity(0.5)
.final - bufferedColor → Color?
-
The foreground color of buffered part, defaults to
Theme.of(context).primaryColor.withOpacity(0.3)
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- indicatorHeight → double?
-
The height of indicator, which only describe the linear bar of indicator, defaults to 5.0.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onScrubbing → (void Function(int position)?)
-
The callback when scrubbing.
final
- onScrubEnd → (void Function()?)
-
The callback when scrubbing finished.
final
- onScrubStart → (void Function()?)
-
The callback when scrubbing started.
final
- padding → EdgeInsets?
-
The padding of indicator, defaults to
EdgeInsets.zero
.final - playedColor → Color?
-
The foreground color of played part, defaults to
Theme.of(context).primaryColor.withOpacity(0.7)
.final - progress → VideoProgress?
-
The video progress.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thumbColor → Color?
-
The color of indicator thumb, defaults to
Theme.of(context).primaryColor.withOpacity(1.0)
.final - thumbSize → double?
-
The size of indicator thumb, which is suggested to be larger than indicatorHeight, defaults to 12.0.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< VideoProgressIndicator> -
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