AVVideoPlayer.short constructor

const AVVideoPlayer.short(
  1. AVPlayerController controller, {
  2. Key? key,
  3. String? title,
  4. VoidCallback? onNext,
  5. VoidCallback? onPrevious,
  6. Widget controlsBuilder(
    1. BuildContext context,
    2. AVPlayerController controller
    )?,
})

Short-form content preset — minimal controls, auto-loop friendly.

Shows only play/pause with no surrounding chrome. Designed for vertical short-form content (TikTok/Reels/Shorts style).

AVVideoPlayer.short(controller)

Implementation

const AVVideoPlayer.short(
  this.controller, {
  super.key,
  this.title,
  this.onNext,
  this.onPrevious,
  this.controlsBuilder,
})  : showControls = true,
      controlsConfig = const AVControlsConfig(
        showSkipButtons: false,
        showPipButton: false,
        showSpeedButton: false,
        showFullscreenButton: false,
        showLoopButton: false,
      ),
      gestureConfig = const AVGestureConfig(
        doubleTapToSeek: true,
        longPressSpeed: true,
        swipeToVolume: true,
        swipeToBrightness: false,
        horizontalSwipeToSeek: false,
      ),
      onFullscreen = null;