Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Oct 9, 2023

Fixes #76

Description

Add an example for image-overlay.

@colbyfayock
Copy link
Collaborator

hey @pwk50 im new to dart, but im getting this error locally:

  dart-transformation-effects git:(dart-transformation) ✗ dart pub get
Resolving dependencies...
The current Dart SDK version is 2.19.5.

Because cloudinary_api >=1.0.1 depends on http ^1.0.0 and cloudinary_api >=1.0.0 <1.0.2 depends on cloudinary_url_gen
  ^0.10.0, cloudinary_api >=1.0.0 requires http ^1.0.0 or cloudinary_url_gen ^0.10.0.
And because http >=1.0.0 requires SDK version >=3.0.0 <4.0.0, cloudinary_api >=1.0.0 requires cloudinary_url_gen
  ^0.10.0.
So, because dart_transformation_effects depends on both cloudinary_url_gen ^1.0.0 and cloudinary_api ^1.0.0, version
  solving failed.

any idea why i might be getting that?

seems related to an http dependency perhaps?

@ghost
Copy link
Author

ghost commented Oct 10, 2023

Hi @colbyfayock. I've updated the sdk constraint to >=3.0.0 to comply with the http package's requirement.
Also can you update your dart version if it's below 3.0.0 and try again.

FYI My dart version is 3.1.3 and I'm not getting this error.

@colbyfayock
Copy link
Collaborator

upgrade to v3 and it works great! thanks @pwk50

@colbyfayock colbyfayock merged commit bb47cfc into cloudinary-community:main Oct 10, 2023
@colbyfayock
Copy link
Collaborator

@all-contributors please add @pwk50 for code

@allcontributors
Copy link
Contributor

@colbyfayock

I've put up a pull request to add @pwk50! 🎉

@colbyfayock
Copy link
Collaborator

@pwk50 congrats on the merged PR! since it was merged during Hacktoberfest, you're eligible for some free swag. Please email [email protected] with your Github username and a link to this PR where we'll follow up with you there.

https://cloudinary.com/blog/hacktoberfest-celebrate-open-source-sdks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Example] Dart - Adding an image as an overlay

2 participants