gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 03:30:28 26 4
gpt4 key购买 nike

我有一个关于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),

关于image - 用户如何完全自由地裁剪图片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64248152/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com