@@ -36,10 +36,12 @@ class PlayerWithControls extends StatelessWidget {
36
36
final playerNotifier = context.read <PlayerNotifier >();
37
37
final child = Stack (
38
38
children: [
39
- if (chewieController.placeholder != null ) chewieController.placeholder! ,
39
+ if (chewieController.placeholder != null )
40
+ chewieController.placeholder! ,
40
41
Center (
41
42
child: AspectRatio (
42
- aspectRatio: chewieController.aspectRatio ??
43
+ aspectRatio:
44
+ chewieController.aspectRatio ??
43
45
chewieController.videoPlayerController.value.aspectRatio,
44
46
child: VideoPlayer (chewieController.videoPlayerController),
45
47
),
@@ -74,16 +76,21 @@ class PlayerWithControls extends StatelessWidget {
74
76
],
75
77
);
76
78
77
- if (chewieController.zoomAndPan || chewieController.transformationController != null ) {
79
+ if (chewieController.zoomAndPan ||
80
+ chewieController.transformationController != null ) {
78
81
return InteractiveViewer (
79
82
transformationController: chewieController.transformationController,
80
83
maxScale: chewieController.maxScale,
81
84
panEnabled: chewieController.zoomAndPan,
82
85
scaleEnabled: chewieController.zoomAndPan,
83
86
onInteractionUpdate:
84
- chewieController.zoomAndPan ? (_) => playerNotifier.hideStuff = true : null ,
87
+ chewieController.zoomAndPan
88
+ ? (_) => playerNotifier.hideStuff = true
89
+ : null ,
85
90
onInteractionEnd:
86
- chewieController.zoomAndPan ? (_) => playerNotifier.hideStuff = false : null ,
91
+ chewieController.zoomAndPan
92
+ ? (_) => playerNotifier.hideStuff = false
93
+ : null ,
87
94
child: child,
88
95
);
89
96
}
0 commit comments