File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,7 @@ class ChewieController extends ChangeNotifier {
262
262
this .optionsBuilder,
263
263
this .additionalOptions,
264
264
this .showControls = true ,
265
+ this .transformationController,
265
266
this .zoomAndPan = false ,
266
267
this .maxScale = 2.5 ,
267
268
this .subtitle,
@@ -307,6 +308,7 @@ class ChewieController extends ChangeNotifier {
307
308
Future <void > Function (BuildContext , List <OptionItem >)? optionsBuilder,
308
309
List <OptionItem > Function (BuildContext )? additionalOptions,
309
310
bool ? showControls,
311
+ TransformationController ? transformationController,
310
312
bool ? zoomAndPan,
311
313
double ? maxScale,
312
314
Subtitles ? subtitle,
@@ -439,6 +441,9 @@ class ChewieController extends ChangeNotifier {
439
441
/// Whether or not to show the controls at all
440
442
final bool showControls;
441
443
444
+ /// Controller to pass into the [InteractiveViewer] component
445
+ final TransformationController ? transformationController;
446
+
442
447
/// Whether or not to allow zooming and panning
443
448
final bool zoomAndPan;
444
449
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ class PlayerWithControls extends StatelessWidget {
38
38
if (chewieController.placeholder != null )
39
39
chewieController.placeholder! ,
40
40
InteractiveViewer (
41
+ transformationController: chewieController.transformationController,
41
42
maxScale: chewieController.maxScale,
42
43
panEnabled: chewieController.zoomAndPan,
43
44
scaleEnabled: chewieController.zoomAndPan,
You can’t perform that action at this time.
0 commit comments