почему после воспроизведения видео и необходимости выхода из него, нажав на выходе, полноэкранное видео все еще работает?
onTap: () {
_chewieController.enterFullScreen();
if (this.mounted) {
setState(() {
_videoPlayerController1.pause();
_videoPlayerController1
.seekTo(Duration(seconds: 0));
_chewieController = ChewieController(
videoPlayerController: _videoPlayerController1,
aspectRatio:
_videoPlayerController1.value?.aspectRatio,
autoInitialize: true,
autoPlay: true,
allowFullScreen: true,
deviceOrientationsAfterFullScreen: [
DeviceOrientation.portraitUp
],
placeholder: Container(
color: Colors.grey,
),
looping: false,
);
});
}
}