I have an app show YouTube video ,when i click on the right-bottom square to full screen mode ,it is be full screen with rotate the screen orientation ,then when i click back button to exit full screen it still horizontal and when i rotate the device it don't correct the orientation I am using this :
YoutubePlayerController _controller = YoutubePlayerController(
initialVideoId: 'xxxxxx?controls=0',
flags: YoutubePlayerFlags(
autoPlay: false,
mute: false,
));
Show the video
YoutubePlayer(
controller: _controller,
showVideoProgressIndicator: true,
progressIndicatorColor: Colors.blueAccent,
)),