gesture_zoom_box 0.0.4 copy "gesture_zoom_box: ^0.0.4" to clipboard
gesture_zoom_box: ^0.0.4 copied to clipboard

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 #

parameter description
maxScale The maximum zoom ratio.
doubleTapScale The zoom ratio for double-click.
duration The execution time of the animation, e.g fling & bounce.
onPressed The callback for click.
child The scalable content.
18
likes
110
pub points
85%
popularity

Publisher

unverified uploader

A widget for gesture zoom.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on gesture_zoom_box