Open keithcwk opened 1 year ago
hope this will get update!
@sarbagyastha any update on this?
any update on this?
Is there a reason to not apply a SafeArea
wrapper yourself? It seems that some folks would want a true full screen mode.
If anyone needs a solution to this I adjusted the aspect ratio of the player and it made the video more visible
return YoutubePlayerBuilder( player: YoutubePlayer( aspectRatio: 21 / 9, controller: _controller, ), builder: (context, player) {
@sarbagyastha Hope you can look into this issue
Describe the bug A
SafeArea
widget should be used when the video is played in fullscreen, especially portrait videos. Attached some screenshots in the sections below to illustrate the issue. To resolve this, I would suggest wrapping theYoutubePlayer
widget with aSafeArea
widget when the player is in full screenOne thing to note however, is that, we might want to change the
SafeArea
params ofleft
andright
to befalse
, so that it does not compress the video at the sides when the video is played fullscreen horizontallyyoutube_player.dart
To Reproduce
DeviceOrientation.portraitUp
as one of the orientation to theYoutubePlayerScaffold
Expected behavior
SafeArea
widget that helps prevent this issueSafeArea
SafeArea
SafeArea
withleft
andright
true
SafeArea
withleft
andright
false
Technical Details:
Additional context Add any other context about the problem here.