Chewie class

A Video Player with Material and Cupertino skins.

video_player is pretty low level. Chewie wraps it in a friendly skin to make it easy to use!

Inheritance

Constructors

Chewie(VideoPlayerController controller, { Key key, double aspectRatio, bool autoInitialize: false, bool autoPlay: false, Duration startAt, bool looping: false, ChewieProgressColors cupertinoProgressColors, ChewieProgressColors materialProgressColors, Widget placeholder, bool showControls: true })

Properties

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
controller VideoPlayerController
The Controller for the Video you want to play
final
cupertinoProgressColors ChewieProgressColors
The colors to use for controls on iOS. By default, the iOS player uses colors sampled from the original iOS 11 designs.
final
looping → bool
Whether or not the video should loop
final
materialProgressColors ChewieProgressColors
The colors to use for the Material Progress Bar. By default, the Material player uses the colors from your Theme.
final
placeholder Widget
The placeholder is displayed underneath the Video before it is initialized or played.
final
showControls → bool
Whether or not to show the controls
final
startAt → Duration
Start video at a certain position
final
hashCode → int
The hash code for this object.
read-only, inherited
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree. [...]
override
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
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.debug }) → String
Returns 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 ==(dynamic other) → bool
The equality operator.
inherited