Pārlūkot izejas kodu

fixes #143 - remove Hero widget (#154)

Mike Behnke 6 gadi atpakaļ
vecāks
revīzija
002b248673
1 mainītis faili ar 4 papildinājumiem un 7 dzēšanām
  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(),