From 0acef25ca43206e02a0758b51d5fd176e3d8c6b8 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Tue, 6 Jun 2023 11:04:39 +0530 Subject: [PATCH] Patch: Disable video rotation See https://github.com/flutter/flutter/issues/122276 --- packages/video_player/video_player/lib/video_player.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/video_player/video_player/lib/video_player.dart b/packages/video_player/video_player/lib/video_player.dart index b0e5b7b0fa94..918eea5d33cb 100644 --- a/packages/video_player/video_player/lib/video_player.dart +++ b/packages/video_player/video_player/lib/video_player.dart @@ -848,12 +848,7 @@ class _VideoPlayerWithRotation extends StatelessWidget { final Widget child; @override - Widget build(BuildContext context) => rotation == 0 - ? child - : Transform.rotate( - angle: rotation * math.pi / 180, - child: child, - ); + Widget build(BuildContext context) => child; } /// Used to configure the [VideoProgressIndicator] widget's colors for how it