onInteractionEnd property

GestureScaleEndCallback? onInteractionEnd

Called when the user ends 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, though a pan may cause an inertia animation after this is called as well.

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.

See also:


final GestureScaleEndCallback? onInteractionEnd;