PinchZoom constructor
const
PinchZoom({})
Create a PinchZoom.
-
childis the widget used for zooming. This parameter must not be null. -
maxScaleis the maximum allowed scale. Defaults to 3.0. Cannot be null, and must be greater than zero. -
zoomEnabledcan be used to enable/disable zooming. -
onZoomStartcalled when the widget goes to its zoomed state. -
onZoomEndcalled when the widget is back to its idle state.
Implementation
const PinchZoom(
{super.key,
required this.child,
// This default maxScale value is eyeballed as reasonable limit for common
// use cases.
this.maxScale = 3.0,
this.zoomEnabled = true,
this.onZoomStart,
this.onZoomEnd});