fixed video aspect ratio

This commit is contained in:
Thibault Deckers 2019-10-06 16:38:59 +09:00
parent c4d44b49ea
commit b4c04d0cdf

View file

@ -60,12 +60,9 @@ class AvesVideoState extends State<AvesVideo> {
),
);
return Center(
child: Container(
width: MediaQuery.of(context).size.width,
child: AspectRatio(
aspectRatio: entry.aspectRatio,
child: VideoPlayer(widget.controller),
),
child: AspectRatio(
aspectRatio: entry.aspectRatio,
child: VideoPlayer(widget.controller),
),
);
}