文件名称:Android代码-适用于Android和iOS的Flutter插件支持裁剪图像。
文件大小:12.79MB
文件格式:ZIP
更新时间:2022-08-25 21:41:57
Android代码
Image Cropper A Flutter plugin for Android and iOS supports cropping images Installation Android Add UCropActivity into your AndroidManifest.xml iOS No configuration required Example Future _cropImage(File imageFile) async { File croppedFile = await ImageCropper.cropImage( sourcePath: imageFile.path, ratioX: 1.0, ratioY: 1.0, maxWidth: 512, maxHeight: 512, ); } Credits This plugin is based on two native libraries: Android: uCrop created by