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

not working with image: ^4.2.0 #155

Closed
kaun9144 opened this issue May 22, 2024 · 5 comments
Closed

not working with image: ^4.2.0 #155

kaun9144 opened this issue May 22, 2024 · 5 comments

Comments

@kaun9144
Copy link

Throws error : ImageFormat imported from both

@bluedeep
Copy link

/Users/local/.pub-cache/hosted/pub.dev/crop_your_image-1.0.2/lib/src/logic/cropper/image_image_cropper.dart:13:1: Error: 'ImageFormat' is imported from both 'package:crop_your_image/src/logic/format_detector/format.dart' and 'package:image/src/formats/image_format.dart'.

@sandrush73
Copy link

go to format.dart and comment it out will work

@kaun9144
Copy link
Author

I used temporary workaround by overriding it like this.
dependency_overrides:
image: 4.1.7

@Dineshkumar-Sridharan
Copy link

dependency_overrides couldn't resolve the problem. Its getting overridden again from crop_your_image transitive dependency

image

@chooyan-eng
Copy link
Owner

Thank you all for the discussion here. I've checked what's happening and fixed it by merging #154 and published 1.1.0.

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

5 participants