Skip to content

Commit

Permalink
fixes fluttercommunity#143 - remove Hero widget (fluttercommunity#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
localpcguy authored and brianegan committed Sep 10, 2019
1 parent e518f9c commit 002b248
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/src/player_with_controls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 002b248

Please sign in to comment.