UVideoPlayer constructor

const UVideoPlayer({
  1. required VideoPlayerSource source,
  2. Key? key,
  3. double? aspectRatio,
  4. bool autoPlay = false,
  5. bool looping = false,
  6. bool showControls = true,
  7. bool allowFullScreen = true,
  8. bool allowPlaybackSpeedChanging = true,
  9. EdgeInsets controlsSafeArea = EdgeInsets.zero,
  10. void onError(
    1. dynamic
    )?,
  11. Widget? loadingIndicator,
  12. Widget? errorIndicator,
  13. bool showLoading = true,
  14. BoxConstraints? constraints,
  15. EdgeInsets padding = EdgeInsets.zero,
  16. ChewieController? controller,
  17. Widget? customControls,
  18. Widget? placeholder,
  19. Widget? overlay,
})

Implementation

const UVideoPlayer({
  required this.source,
  super.key,
  this.aspectRatio,
  this.autoPlay = false,
  this.looping = false,
  this.showControls = true,
  this.allowFullScreen = true,
  this.allowPlaybackSpeedChanging = true,
  this.controlsSafeArea = EdgeInsets.zero,
  this.onError,
  this.loadingIndicator,
  this.errorIndicator,
  this.showLoading = true,
  this.constraints,
  this.padding = EdgeInsets.zero,
  this.controller,
  this.customControls,
  this.placeholder,
  this.overlay,
});