GestureZoomBox

A widget for gesture zoom.

Usage

GestureZoomBox(
    maxScale: 5.0,
    doubleTapScale: 2.0,
    duration: Duration(milliseconds: 200),
    onPressed: () => Navigator.pop(context),
    child: Image.network(widget.imageUrl),
)

Parameters

parameterdescription
maxScaleThe maximum zoom ratio.
doubleTapScaleThe zoom ratio for double-click.
durationThe execution time of the animation, e.g fling & bounce.
onPressedThe callback for click.
childThe scalable content.

Libraries

gesture_zoom_box