|
|
@@ -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(),
|