|
|
@@ -14,15 +14,20 @@ class PlayerWithControls extends StatelessWidget {
|
|
|
Widget build(BuildContext context) {
|
|
|
final ChewieController chewieController = ChewieController.of(context);
|
|
|
|
|
|
- return Center(
|
|
|
- child: Container(
|
|
|
- width: MediaQuery.of(context).size.width,
|
|
|
- child: AspectRatio(
|
|
|
- aspectRatio:
|
|
|
+ return Stack(
|
|
|
+ children: [
|
|
|
+ Center(
|
|
|
+ child: Container(
|
|
|
+ width: MediaQuery.of(context).size.width,
|
|
|
+ child: AspectRatio(
|
|
|
+ aspectRatio:
|
|
|
chewieController.aspectRatio ?? _calculateAspectRatio(context),
|
|
|
- child: _buildPlayerWithControls(chewieController, context),
|
|
|
+ child: _buildPlayerWithControls(chewieController, context),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
),
|
|
|
- ),
|
|
|
+ _buildControls(context, chewieController),
|
|
|
+ ],
|
|
|
);
|
|
|
}
|
|
|
|
|
|
@@ -40,7 +45,6 @@ class PlayerWithControls extends StatelessWidget {
|
|
|
),
|
|
|
),
|
|
|
chewieController.overlay ?? Container(),
|
|
|
- _buildControls(context, chewieController),
|
|
|
],
|
|
|
),
|
|
|
);
|