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( return Center(
child: Container( child: AspectRatio(
width: MediaQuery.of(context).size.width, aspectRatio: entry.aspectRatio,
child: AspectRatio( child: VideoPlayer(widget.controller),
aspectRatio: entry.aspectRatio,
child: VideoPlayer(widget.controller),
),
), ),
); );
} }