FlickVideoWithControls class

Default Video with Controls.

Returns a Stack with the following arrangement.

  • FlickVideoPlayer
  • Stack (Wrapped with Positioned.fill())
    • Video Player loading fallback (conditionally rendered if player is not initialized).
    • Video player error fallback (conditionally rendered if error in initializing the player).
    • Controls.
Inheritance

Constructors

FlickVideoWithControls({Key? key, Widget? controls, BoxFit videoFit = BoxFit.cover, Widget playerLoadingFallback = const Center(child: CircularProgressIndicator()), Widget playerErrorFallback = const Center(child: const Icon(Icons.error, color: Colors.white)), Color backgroundColor = Colors.black, IconThemeData iconThemeData = const IconThemeData(color: Colors.white, size: 20), TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 12), double aspectRatioWhenLoading = 16 / 9, bool willVideoPlayerControllerChange = true, TextStyle closedCaptionTextStyle = const TextStyle(color: Colors.white, fontSize: 12)})
const

Properties

aspectRatioWhenLoading double
If FlickPlayer has unbounded constraints this aspectRatio is used to take the size on the screen.
final
backgroundColor Color
final
closedCaptionTextStyle TextStyle
Used in DefaultTextStyle
final
controls Widget?
Create custom controls or use any of these FlickPortraitControls, FlickLandscapeControls
final
hashCode int
The hash code for this object.
no setterinherited
iconThemeData IconThemeData
Used in IconTheme
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
playerErrorFallback Widget
Conditionally rendered if player is has errors.
final
playerLoadingFallback Widget
Conditionally rendered if player is not initialized.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textStyle TextStyle
Used in DefaultTextStyle
final
videoFit BoxFit
Property passed to FlickVideoPlayer
final
videoPlayerController → dynamic
no setter
willVideoPlayerControllerChange bool
If false videoPlayerController will not be updated.
final

Methods

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