flutter 缩放图片最好的插件 photo_view

喜欢可以加群号:913934649

flutter 缩放图片最好的插件 photo_view 可设置缩放比例,可设置加载动画默认背景

PhotoView(
                imageProvider: imageProvider,
                loadingChild: loadingChild,
                backgroundDecoration: backgroundDecoration,
                minScale: minScale :  0.1,
                maxScale: maxScale:  3.0,
                heroAttributes: PhotoViewHeroAttributes(tag: heroTag),
                enableRotation: false,
              ),
复制代码

 

你可能感兴趣的:(flutter,dart)