Flutter 如何使用视频播放器和Chuie在颤振中隐藏状态栏
这个SystemChrome.SetEnabledSystemTimeOverlays在初始化状态下无法与我一起工作,问题出现在全屏上 这是我的初始状态Flutter 如何使用视频播放器和Chuie在颤振中隐藏状态栏,flutter,dart,video,statusbar,video-player,Flutter,Dart,Video,Statusbar,Video Player,这个SystemChrome.SetEnabledSystemTimeOverlays在初始化状态下无法与我一起工作,问题出现在全屏上 这是我的初始状态 void initState() { SystemChrome.setEnabledSystemUIOverlays([]); super.initState(); _chewieController = ChewieController( videoPlayerControl
void initState() {
SystemChrome.setEnabledSystemUIOverlays([]);
super.initState();
_chewieController = ChewieController(
videoPlayerController: widget.videoPlayerController,
looping: widget.loop,
aspectRatio: 16 / 9,
autoInitialize: true,
autoPlay: false,
showControls: true,
showControlsOnInitialize: true,
fullScreenByDefault: true,
allowFullScreen: true,
deviceOrientationsOnEnterFullScreen: [DeviceOrientation.landscapeLeft],
deviceOrientationsAfterFullScreen: [DeviceOrientation.portraitUp],
);
}