Browse Source

fixes #143 - remove Hero widget (#154)

Mike Behnke 6 years ago
parent
commit
002b248673
1 changed files with 4 additions and 7 deletions
  1. 4 7
      lib/src/player_with_controls.dart

+ 4 - 7
lib/src/player_with_controls.dart

@@ -33,13 +33,10 @@ class PlayerWithControls extends StatelessWidget {
         children: <Widget>[
           chewieController.placeholder ?? Container(),
           Center(
-            child: Hero(
-              tag: chewieController.videoPlayerController,
-              child: AspectRatio(
-                aspectRatio: chewieController.aspectRatio ??
-                    _calculateAspectRatio(context),
-                child: VideoPlayer(chewieController.videoPlayerController),
-              ),
+            child: AspectRatio(
+              aspectRatio: chewieController.aspectRatio ??
+                  _calculateAspectRatio(context),
+              child: VideoPlayer(chewieController.videoPlayerController),
             ),
           ),
           chewieController.overlay ?? Container(),