fixed video aspect ratio
This commit is contained in:
parent
c4d44b49ea
commit
b4c04d0cdf
1 changed files with 3 additions and 6 deletions
|
@ -60,13 +60,10 @@ class AvesVideoState extends State<AvesVideo> {
|
|||
),
|
||||
);
|
||||
return Center(
|
||||
child: Container(
|
||||
width: MediaQuery.of(context).size.width,
|
||||
child: AspectRatio(
|
||||
aspectRatio: entry.aspectRatio,
|
||||
child: VideoPlayer(widget.controller),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue