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

[Bug]: screenshot package needs update for flutter 3.22 #45

Closed
sgehrman opened this issue May 13, 2024 · 2 comments
Closed

[Bug]: screenshot package needs update for flutter 3.22 #45

sgehrman opened this issue May 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@sgehrman
Copy link

Package Version

22

Flutter Version

3.22

Platforms

Web

How to reproduce?

install flutter 3.22, try to compile

Target dart2js failed: ProcessException: Process exited abnormally with exit code 1:
../../../../../.pub-cache/hosted/pub.dev/screenshot-2.3.0/lib/screenshot.dart:164:9:
Error: No named parameter with the name 'size'.
        size: logicalSize,
        ^^^^

Logs (optional)

https://github.com/SachinGanesh/screenshot/issues/169

Example code (optional)

No response

Device Model (optional)

No response

@sgehrman sgehrman added the bug Something isn't working label May 13, 2024
@hm21
Copy link
Owner

hm21 commented May 14, 2024

Thank you for reporting this issue.

Currently, there is no newer version of the package screenshot available which resolve this issue. When it is released, I will update directly.
For anyone running into this problem, you can fork this repository and replace the screenshot package inside pubspec.yaml like this:

screenshot:
    git: 
       url: https://github.com/SachinGanesh/screenshot.git

In public packages, it is not possible to use packages directly from github, but for anyone who forks it and uses it themselves, this will work.

FYI: I'm making good progress with the new Crop-Rotate-Editor in the dev branch. This update will also remove the screenshot package, which will solve this problem directly.

@hm21
Copy link
Owner

hm21 commented May 14, 2024

Fixed in version >= 2.7.9.

@hm21 hm21 closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants