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

Disable rotation? #64

Closed
Mayb3Nots opened this issue May 30, 2021 · 7 comments · May be fixed by #66
Closed

Disable rotation? #64

Mayb3Nots opened this issue May 30, 2021 · 7 comments · May be fixed by #66

Comments

@Mayb3Nots
Copy link

Mayb3Nots commented May 30, 2021

Is there a way to disable rotation to only accept scale input? I wanna zoom in without touching the rotation of the image

@xclud
Copy link
Owner

xclud commented May 30, 2021

@Mayb3Nots Currently not possible. This is a great feature to have. Adding this issue to project v1.

@xclud
Copy link
Owner

xclud commented May 30, 2021

@Mayb3Nots Meanwhite, you can set interactive to false and wrap Crop widget in a GestureDetector and scale using CropController.scale.

@Mayb3Nots
Copy link
Author

@xclud I have added a PR to add this feature. #66

@Mayb3Nots Mayb3Nots reopened this May 30, 2021
@Keatr0n
Copy link

Keatr0n commented Jan 10, 2022

I had this problem too, I just did this
onChanged: (data) {if (data.rotation != 0) {croppedController.rotation = 0;}},

@xclud
Copy link
Owner

xclud commented Jan 10, 2022

I am closing this PR as @Keatr0n's solutions seems OK. Thank you.

@xclud xclud closed this as completed Jan 10, 2022
@paricleu
Copy link

I think this feature warrants its own flag and not some workaround in a callback that's not meant for disabling features.
Is there a reason the PR couldn't be merged into the plugin? If there are things that need fixing I would be willing to have a go at it.

@Mayb3Nots
Copy link
Author

I think this feature warrants its own flag and not some workaround in a callback that's not meant for disabling features.
Is there a reason the PR couldn't be merged into the plugin? If there are things that need fixing I would be willing to have a go at it.

I agree with everything you mentioned

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

Successfully merging a pull request may close this issue.

4 participants