flutter_image_cropper icon indicating copy to clipboard operation
flutter_image_cropper copied to clipboard

Como manter a máscara de corte estática ao rotacionar a imagem no ImageCropper no Flutter?

Open SergioMordente opened this issue 1 year ago • 1 comments

Descrição: Estou utilizando o plugin image_cropper no meu aplicativo Flutter e preciso que a máscara de corte permaneça estática enquanto o usuário rotaciona a imagem. Atualmente, ao rotacionar a imagem usando os botões de rotação, a máscara de corte também rotaciona junto, o que não é o comportamento desejado. Atualmente esto na versão 8.0.2, mas acontece em versões anteriores também.

As configurações que estou utilizando no iOS são: IOSUiSettings( title: 'Cortar imagem', resetAspectRatioEnabled: false, aspectRatioLockDimensionSwapEnabled: false, aspectRatioLockEnabled: true, rotateButtonsHidden: false, // Botões de rotação visíveis ) Preciso que a máscara de corte mantenha as mesmas proporções e posição, mesmo após a rotação da imagem. Existe alguma configuração adicional ou uma abordagem diferente para alcançar esse comportamento?

SergioMordente avatar Aug 25 '24 12:08 SergioMordente

Acho que traduzir para inglês terá uma maior chance de responderem:

English:

How to Keep the Cropping Mask Static When Rotating the Image in ImageCropper on Flutter?

Description: I am using the image_cropper plugin in my Flutter application, and I need the cropping mask to remain static while the user rotates the image. Currently, when rotating the image using the rotation buttons, the cropping mask also rotates along with it, which is not the desired behavior. I am currently using version 8.0.2, but this issue occurs in earlier versions as well.

The settings I am using on iOS are:

IOSUiSettings(
  title: 'Crop Image',
  resetAspectRatioEnabled: false,
  aspectRatioLockDimensionSwapEnabled: false,
  aspectRatioLockEnabled: true,
  rotateButtonsHidden: false, // Rotation buttons visible
)

I need the cropping mask to maintain the same proportions and position, even after the image is rotated. Is there any additional configuration or a different approach to achieve this behavior?

echogit avatar Aug 28 '24 03:08 echogit