SachinGanesh / screenshot

Flutter Screenshot Library
https://pub.dev/packages/screenshot
MIT License
327 stars 137 forks source link

i have update 2.3.0 to 2.4.0 and getting this error . #184

Closed vijayvaghela72 closed 1 month ago

vijayvaghela72 commented 1 month ago
Screenshot 2024-05-14 at 3 28 52 PM
vijayvaghela72 commented 1 month ago

also i have try to downgrade this version in pubspect file but still facing this error .

vijayvaghela72 commented 1 month ago

i've try

flutter clean flutter pub get flutter run

vanlooverenkoen commented 1 month ago

:( breaking changes on a minor version change. :(

vijayvaghela72 commented 1 month ago

this kind of changes rely effect development process

need to be a more professional !

please test small things and then update package in pub.dev :(

ritheshSalyan commented 1 month ago

Hi, If you are using flutter version <=3.19 then consider using "2.3.0" of screenshot.

Version 2.4.0 is update for flutter >=3.22 .

We have mentioned it in Changelog. Please consider checking changelog before using it. "https://pub.dev/packages/screenshot/changelog#240---14052024"

vanlooverenkoen commented 1 month ago

Please in the future use 3.0.0 when doing breaking changes.

This is the documentation on how to do semantic versioning: https://semver.org/

vanlooverenkoen commented 1 month ago

Also use the proper pubspec config to indicate that a version should only be used as of a specific version.

environment:
  flutter: '>=3.22.0'
ritheshSalyan commented 1 month ago

@vanlooverenkoen Ok, Thank you for suggestions. I will consider your suggestions for future releases.

On a side note, Flutter itself didn't release a major version for this breaking change in their api.

ritheshSalyan commented 1 month ago

We published 2 versions

I hope this would solve version issues. closing this issue . If you think this is incorrect please consider reopening the issue.

vijayvaghela72 commented 1 month ago

Thanks for update !

Version 3.0.0 is just awesome !