CustomVimeoPlayer class

A widget that embeds a Vimeo video player with customizable controls and event callbacks.

This widget uses InAppWebView to embed Vimeo videos and provides various customization options and event callbacks for video playback control.

Example usage:

CustomVimeoPlayer(
  videoId: '<your_video_id>',
  autoPlay: true,
  onPlay: () => print('Video started playing'),
)
Inheritance

Constructors

CustomVimeoPlayer.new({Key? key, required String videoId, bool autoPlay = false, bool loop = false, bool muted = false, bool showTitle = false, bool showByline = false, bool controls = true, bool dnt = true, VoidCallback? onReady, VoidCallback? onPlay, VoidCallback? onPause, VoidCallback? onEnd, VoidCallback? onSeeked})
Creates a custom Vimeo player widget.
const

Properties

autoPlay bool
Whether the video should start playing automatically when loaded.
final
controls bool
Whether to show the video playback controls.
final
dnt bool
Whether to enable Do Not Track (DNT) mode.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loop bool
Whether the video should loop after it ends.
final
muted bool
Whether the video should start muted.
final
onEnd VoidCallback?
Callback function called when the video playback ends.
final
onPause VoidCallback?
Callback function called when the video is paused.
final
onPlay VoidCallback?
Callback function called when the video starts playing.
final
onReady VoidCallback?
Callback function called when the player is ready to play.
final
onSeeked VoidCallback?
Callback function called when the video position is changed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showByline bool
Whether to show the video byline.
final
showTitle bool
Whether to show the video title.
final
videoId String
The ID of the Vimeo video to be played.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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, int wrapWidth = 65}) 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