Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aspect ratio lock doesn't work if custom aspect ratio is set #100

Open
aleksei-a-savitski opened this issue Nov 8, 2019 · 0 comments
Open

Comments

@aleksei-a-savitski
Copy link

I set aspectRatioLockDimensionSwapEnabled to false to make crop area retain its orientation when an image is rotated. Here is how ImageCropper.cropImage() is envoked:

File croppedFile = await ImageCropper.cropImage(
  sourcePath: photoPath,
  aspectRatio: CropAspectRatio(ratioX: 13.5, ratioY: 9.5),
  iosUiSettings: IOSUiSettings(
    resetAspectRatioEnabled: false,
    aspectRatioLockEnabled: true,
    aspectRatioLockDimensionSwapEnabled: false,
  ),
);

It doesn't work as expect when I pass custom value to aspectRatio setting. The aspectRatioLockDimensionSwapEnabled is being overriten to true.

@aleksei-a-savitski aleksei-a-savitski changed the title Aspect ratio loc doesn't work if custom aspect ratio is set Aspect ratio lock doesn't work if custom aspect ratio is set Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant