From fe4084ba350327c7a224ce2b02ceca267942b904 Mon Sep 17 00:00:00 2001 From: Tommy Chow Date: Sat, 15 Apr 2023 13:30:20 -0400 Subject: [PATCH] Fix off-center native video player in landscape mode --- lib/screens/channel/video/video.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/screens/channel/video/video.dart b/lib/screens/channel/video/video.dart index f454d483..e2e1c759 100644 --- a/lib/screens/channel/video/video.dart +++ b/lib/screens/channel/video/video.dart @@ -137,9 +137,11 @@ class _NativeVideoState extends State { return const Center(child: CircularProgressIndicator()); } - return AspectRatio( - aspectRatio: 16 / 9, - child: VideoPlayer(videoPlayerController), + return Center( + child: AspectRatio( + aspectRatio: 16 / 9, + child: VideoPlayer(videoPlayerController), + ), ); }, );