FlickVideoPlayer constructor
const
FlickVideoPlayer({
- Key? key,
- required FlickManager flickManager,
- Widget flickVideoWithControls = const FlickVideoWithControls(controls: const FlickPortraitControls()),
- Widget? flickVideoWithControlsFullscreen,
- List<
SystemUiOverlay> systemUIOverlay = SystemUiOverlay.values, - List<
SystemUiOverlay> systemUIOverlayFullscreen = const [], - List<
DeviceOrientation> preferredDeviceOrientation = const [DeviceOrientation.portraitUp, DeviceOrientation.portraitDown], - List<
DeviceOrientation> preferredDeviceOrientationFullscreen = const [DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight], - bool wakelockEnabled = true,
- bool wakelockEnabledFullscreen = true,
- dynamic webKeyDownHandler() = flickDefaultWebKeyDownHandler,
Implementation
const FlickVideoPlayer({
Key? key,
required this.flickManager,
this.flickVideoWithControls = const FlickVideoWithControls(
controls: const FlickPortraitControls(),
),
this.flickVideoWithControlsFullscreen,
this.systemUIOverlay = SystemUiOverlay.values,
this.systemUIOverlayFullscreen = const [],
this.preferredDeviceOrientation = const [
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
],
this.preferredDeviceOrientationFullscreen = const [
DeviceOrientation.landscapeLeft,
DeviceOrientation.landscapeRight
],
this.wakelockEnabled = true,
this.wakelockEnabledFullscreen = true,
this.webKeyDownHandler = flickDefaultWebKeyDownHandler,
}) : super(key: key);