Sfoglia il codice sorgente

fixes #143 - remove Hero widget (#154)

Mike Behnke 6 anni fa
parent
commit
002b248673
1 ha cambiato i file con 4 aggiunte e 7 eliminazioni
  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(),