用户如何完全自由地裁剪图片

问题描述

我对image_cropper插件有疑问...我希望用户能够自己裁剪照片,而不必使用预设选项(3:2、4:3、16:9 ,...),但找不到任何说明。我已经看到它可以在互联网上运行,但是我不知道如何。

这些是您到目前为止可以使用的可能性,但是我希望用户能够完全自由地做出决定:

 aspectRatioPresets: [
        CropAspectRatioPreset.square,CropAspectRatioPreset.ratio3x2,CropAspectRatioPreset.original,CropAspectRatioPreset.ratio4x3,CropAspectRatioPreset.ratio16x9
      ],

有人知道它是如何工作的吗?

解决方法

将androidUiSettings替换为:

androidUiSettings: AndroidUiSettings(
          toolbarColor: Colors.yellow,toolbarTitle: 'Bild zuschneiden',initAspectRatio: CropAspectRatioPreset.original,lockAspectRatio: false),

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...