VideoView constructor
const
VideoView({
- Key? key,
- required String videoUrl,
- double? width,
- double? height,
- BoxFit? fit = BoxFit.contain,
- bool autoPlay = false,
- bool looping = false,
- bool showControls = true,
- VideoErrorCallback? onError,
- VoidCallback? onPlay,
- VoidCallback? onPause,
- VoidCallback? onMute,
- VoidCallback? onUnmute,
- VisibilityCallback? onVisibilityChanged,
- VoidCallback? on50PercentVisible,
- QuartileCallback? onQuartile,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- BoxDecoration? decoration,
- BorderRadiusGeometry? borderRadius,
Implementation
const VideoView({
Key? key,
required this.videoUrl,
this.width,
this.height,
this.fit = BoxFit.contain,
this.autoPlay = false,
this.looping = false,
this.showControls = true,
this.onError,
this.onPlay,
this.onPause,
this.onMute,
this.onUnmute,
this.onVisibilityChanged,
this.on50PercentVisible,
this.onQuartile,
this.padding,
this.margin,
this.decoration,
this.borderRadius,
}) : super(key: key);