From b4c04d0cdf4ee475e2f4aa296df0011b58674489 Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Sun, 6 Oct 2019 16:38:59 +0900 Subject: [PATCH] fixed video aspect ratio --- lib/widgets/fullscreen/video.dart | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/widgets/fullscreen/video.dart b/lib/widgets/fullscreen/video.dart index 19fefdeb9..d23e7de05 100644 --- a/lib/widgets/fullscreen/video.dart +++ b/lib/widgets/fullscreen/video.dart @@ -60,12 +60,9 @@ class AvesVideoState extends State { ), ); 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), ), ); }