gesture_zoom_box 0.0.3

Flutter Android iOS web

A widget for gesture zoom.

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.
4
likes
80
pub points
85%
popularity

A widget for gesture zoom.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

shichaohui1230@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on gesture_zoom_box