photo_zoom 0.1.0
photo_zoom: ^0.1.0 copied to clipboard
Pan, zoom and rotate images. Double tap and pinch zoom where you touch, mouse wheel zooms on desktop, and the gallery swipes between photos.
0.1.0 #
Initial release.
PhotoView: pan, pinch zoom, double tap cycle, optional rotation, hero transitions, loading and error builders, andPhotoView.customChildfor zooming an arbitrary widget.PhotoViewGallery: aPageViewof photos, from a list or built on demand. Each page keeps its own zoom, and hands a drag to the page view once its photo is panned to the edge.PhotoViewControllerandPhotoViewScaleStateController:ValueNotifiers that read and drive the transform and the double tap cycle.PhotoViewScale: typed scale limits, eitherPhotoViewScale.valueor aPhotoViewComputedScale.contained/.covered, with*and/to offset them.- Zoom anchors at the touch, pointer or tap, rather than at
basePosition. enableScrollZoom: mouse wheel zooms at the pointer and a two-finger trackpad scroll pans. Events that would change nothing are left to an ancestor scrollable.- Zoom level and zoom actions exposed to screen readers; reduced motion honoured.
The API follows the photo_view package by Renan C. Araújo. See "Migrating from photo_view" in the README for the differences.