PipFlutterPlayerConfiguration constructor

const PipFlutterPlayerConfiguration({
  1. double? aspectRatio,
  2. bool autoPlay = false,
  3. Duration? startAt,
  4. bool looping = false,
  5. bool fullScreenByDefault = false,
  6. Widget? placeholder,
  7. bool showPlaceholderUntilPlay = false,
  8. bool placeholderOnTop = true,
  9. Widget? overlay,
  10. Widget errorBuilder(
    1. BuildContext context,
    2. String? errorMessage
    )?,
  11. bool allowedScreenSleep = true,
  12. double? fullScreenAspectRatio,
  13. List<DeviceOrientation> deviceOrientationsOnFullScreen = const [DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight],
  14. List<SystemUiOverlay> systemOverlaysAfterFullScreen = SystemUiOverlay.values,
  15. List<DeviceOrientation> deviceOrientationsAfterFullScreen = const [DeviceOrientation.portraitUp, DeviceOrientation.portraitDown, DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight],
  16. PipFlutterPlayerRoutePageBuilder? routePageBuilder,
  17. dynamic eventListener(
    1. PipFlutterPlayerEvent
    )?,
  18. PipFlutterPlayerSubtitlesConfiguration subtitlesConfiguration = const PipFlutterPlayerSubtitlesConfiguration(),
  19. PipFlutterPlayerControlsConfiguration controlsConfiguration = const PipFlutterPlayerControlsConfiguration(),
  20. BoxFit fit = BoxFit.fill,
  21. double rotation = 0,
  22. dynamic playerVisibilityChangedBehavior(
    1. double visibilityFraction
    )?,
  23. List<PipFlutterPlayerTranslations>? translations,
  24. bool autoDetectFullscreenDeviceOrientation = false,
  25. bool autoDetectFullscreenAspectRatio = false,
  26. bool handleLifecycle = true,
  27. bool autoDispose = true,
  28. bool expandToFill = true,
  29. bool useRootNavigator = false,
})

Implementation

const PipFlutterPlayerConfiguration({
  this.aspectRatio,
  this.autoPlay = false,
  this.startAt,
  this.looping = false,
  this.fullScreenByDefault = false,
  this.placeholder,
  this.showPlaceholderUntilPlay = false,
  this.placeholderOnTop = true,
  this.overlay,
  this.errorBuilder,
  this.allowedScreenSleep = true,
  this.fullScreenAspectRatio,
  this.deviceOrientationsOnFullScreen = const [
    DeviceOrientation.landscapeLeft,
    DeviceOrientation.landscapeRight,
  ],
  this.systemOverlaysAfterFullScreen = SystemUiOverlay.values,
  this.deviceOrientationsAfterFullScreen = const [
    DeviceOrientation.portraitUp,
    DeviceOrientation.portraitDown,
    DeviceOrientation.landscapeLeft,
    DeviceOrientation.landscapeRight,
  ],
  this.routePageBuilder,
  this.eventListener,
  this.subtitlesConfiguration =
      const PipFlutterPlayerSubtitlesConfiguration(),
  this.controlsConfiguration = const PipFlutterPlayerControlsConfiguration(),
  this.fit = BoxFit.fill,
  this.rotation = 0,
  this.playerVisibilityChangedBehavior,
  this.translations,
  this.autoDetectFullscreenDeviceOrientation = false,
  this.autoDetectFullscreenAspectRatio = false,
  this.handleLifecycle = true,
  this.autoDispose = true,
  this.expandToFill = true,
  this.useRootNavigator = false,
});