Fix off-center native video player in landscape mode
This commit is contained in:
parent
8bde136eb2
commit
fe4084ba35
1 changed files with 5 additions and 3 deletions
|
|
@ -137,9 +137,11 @@ class _NativeVideoState extends State<NativeVideo> {
|
|||
return const Center(child: CircularProgressIndicator());
|
||||
}
|
||||
|
||||
return AspectRatio(
|
||||
aspectRatio: 16 / 9,
|
||||
child: VideoPlayer(videoPlayerController),
|
||||
return Center(
|
||||
child: AspectRatio(
|
||||
aspectRatio: 16 / 9,
|
||||
child: VideoPlayer(videoPlayerController),
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue