Flutter 图片压缩上传,压缩工具推荐 flutter_native_image

搞了一下午的Flutter 多图片压缩上传,鲁班压缩老是报传递参数错误,横下心找了图片压缩库 发现flutter_native_image比较好用。
用法:
File compressedFile = await FlutterNativeImage.compressImage(filePath,
quality: 70, percentage: 50);

返回的是文件,可以自由支配加载方式,用法简单!

你可能感兴趣的:(Flutter 图片压缩上传,压缩工具推荐 flutter_native_image)