AVVideoPlayer.short constructor
const
AVVideoPlayer.short(
- AVPlayerController controller, {
- Key? key,
- String? title,
- VoidCallback? onNext,
- VoidCallback? onPrevious,
- Widget controlsBuilder(
- BuildContext context,
- 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;