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

Seems to have stopped working in flutter 3.0 #102

Closed
LeeMatthewHiggins opened this issue May 12, 2022 · 4 comments
Closed

Seems to have stopped working in flutter 3.0 #102

LeeMatthewHiggins opened this issue May 12, 2022 · 4 comments
Assignees

Comments

@LeeMatthewHiggins
Copy link

This code used to work on flutter https://github.com/flutter/flutter/releases/tag/2.10.5
but just gives a transparent image on https://github.com/flutter/flutter/releases/tag/3.0.0

 final pngData =
        await ScreenshotController().captureFromWidget(widget, pixelRatio: 5.0);
@aytunch
Copy link

aytunch commented May 17, 2022

I have the same problem. I have no idea what the cause is.
@SachinGanesh @ritheshSalyan can you please look in to this issue? This blocks us from upgrading to Flutter 3.0
By the way thanks for this awesome package.

@steffenSuess
Copy link

I think the problem is related to the migration to the web ImageDecoder API as described here. I was able to temporarily solve it for myself by setting the flag described here.

flutter run -d chrome --dart-define=BROWSER_IMAGE_DECODING_ENABLED=false --release

@aytunch
Copy link

aytunch commented May 19, 2022

@steffenSuess thanks for the workaround suggestion. I hope a persistent solution arrives.
Best regards

@ritheshSalyan
Copy link
Collaborator

for Reference #103

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

4 participants