bluefireteam / photo_view

📸 Easy to use yet very customizable zoomable image widget for Flutter, Photo View provides a gesture sensitive zoomable widget. Photo View is largely used to show interacive images and other stuff such as SVG.
MIT License
1.9k stars 546 forks source link

Can you support the initial state of the picture for double click range scaling, double click again to shrink back to the initial state? #549

Open ZenderHan opened 8 months ago

ZenderHan commented 8 months ago

Similar to the zooming effect of wechat on pictures

wp993080086 commented 6 months ago

Look heremaxScale property

builder: (BuildContext context, int index) {
                          return PhotoViewGalleryPageOptions(
                              imageProvider: ’‘,
                              initialScale:PhotoViewComputedScale.contained * 1,
                              heroAttributes: PhotoViewHeroAttributes(tag: imageList[index]),
                              minScale: PhotoViewComputedScale.contained * 1,
                              maxScale: PhotoViewComputedScale.covered);
                        }