@@ -36,10 +36,12 @@ class PlayerWithControls extends StatelessWidget {
3636 final playerNotifier = context.read <PlayerNotifier >();
3737 final child = Stack (
3838 children: [
39- if (chewieController.placeholder != null ) chewieController.placeholder! ,
39+ if (chewieController.placeholder != null )
40+ chewieController.placeholder! ,
4041 Center (
4142 child: AspectRatio (
42- aspectRatio: chewieController.aspectRatio ??
43+ aspectRatio:
44+ chewieController.aspectRatio ??
4345 chewieController.videoPlayerController.value.aspectRatio,
4446 child: VideoPlayer (chewieController.videoPlayerController),
4547 ),
@@ -74,16 +76,21 @@ class PlayerWithControls extends StatelessWidget {
7476 ],
7577 );
7678
77- if (chewieController.zoomAndPan || chewieController.transformationController != null ) {
79+ if (chewieController.zoomAndPan ||
80+ chewieController.transformationController != null ) {
7881 return InteractiveViewer (
7982 transformationController: chewieController.transformationController,
8083 maxScale: chewieController.maxScale,
8184 panEnabled: chewieController.zoomAndPan,
8285 scaleEnabled: chewieController.zoomAndPan,
8386 onInteractionUpdate:
84- chewieController.zoomAndPan ? (_) => playerNotifier.hideStuff = true : null ,
87+ chewieController.zoomAndPan
88+ ? (_) => playerNotifier.hideStuff = true
89+ : null ,
8590 onInteractionEnd:
86- chewieController.zoomAndPan ? (_) => playerNotifier.hideStuff = false : null ,
91+ chewieController.zoomAndPan
92+ ? (_) => playerNotifier.hideStuff = false
93+ : null ,
8794 child: child,
8895 );
8996 }
0 commit comments