onInteractionUpdate property

GestureScaleUpdateCallback? onInteractionUpdate

Called when the user updates a pan or scale gesture on the widget.

At the time this is called, the TransformationController will have already been updated to reflect the change caused by the interaction, if the interaction caused the matrix to change.

Will be called even if the interaction is disabled with panEnabled or scaleEnabled for both touch gestures and mouse interactions.

A GestureDetector wrapping the InteractiveViewer will not respond to GestureDetector.onScaleStart, GestureDetector.onScaleUpdate, and GestureDetector.onScaleEnd. Use onInteractionStart, onInteractionUpdate, and onInteractionEnd to respond to those gestures.

The coordinates provided in the details' focalPoint and localFocalPoint are normal Flutter event coordinates, not InteractiveViewer scene coordinates. See TransformationController.toScene for how to convert these coordinates to scene coordinates relative to the child.

See also:


final GestureScaleUpdateCallback? onInteractionUpdate;