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,13 +60,10 @@ class AvesVideoState extends State<AvesVideo> {
), ),
); );
return Center( return Center(
child: Container(
width: MediaQuery.of(context).size.width,
child: AspectRatio( child: AspectRatio(
aspectRatio: entry.aspectRatio, aspectRatio: entry.aspectRatio,
child: VideoPlayer(widget.controller), child: VideoPlayer(widget.controller),
), ),
),
); );
} }