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 Compatible on Web #13

Closed
offnewman opened this issue Jun 24, 2020 · 4 comments
Closed

Not Compatible on Web #13

offnewman opened this issue Jun 24, 2020 · 4 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation up-for-grabs web

Comments

@offnewman
Copy link

offnewman commented Jun 24, 2020

Love this package and the web tag got me excited, however -

renderObject.toImage(pixelRatio: pixelRatio);

doesn't work on web atm.

See flutter/flutter#49857.

@ueman ueman added bug Something isn't working documentation Improvements or additions to documentation labels Aug 23, 2020
@joe-getcouragenow
Copy link

anyone else got this working ?

Otherwise will fork and send PR back

@joe-getcouragenow
Copy link

Error is:

org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/html/scene_builder.dart:92:16
matrix4[0] == window.devicePixelRatio &&
           matrix4[5] == window.devicePixelRatio
is not true
    at Object.throw_ [as throw] (http://localhost:63054/dart_sdk.js:4339:11)
    at Object.assertFailed (http://localhost:63054/dart_sdk.js:4282:15)
    at _engine.SurfaceSceneBuilder.new.pushTransform
    (http://localhost:63054/dart_sdk.js:156899:133)
    at layer$.OffsetLayer.new.toImage
    (http://localhost:63054/packages/flutter/src/rendering/layer.dart.lib.js:1631:17)
    at toImage.next (<anonymous>)
    at runBody (http://localhost:63054/dart_sdk.js:37699:34)
    at Object._async [as async] (http://localhost:63054/dart_sdk.js:37730:7)
    at layer$.OffsetLayer.new.toImage
    (http://localhost:63054/packages/flutter/src/rendering/layer.dart.lib.js:1625:20)
    at proxy_box.RenderRepaintBoundary.new.toImage
    (http://localhost:63054/packages/flutter/src/rendering/proxy_box.dart.lib.js:3222:26)
    at screenshot.ScreenshotController.new.<anonymous>
    (http://localhost:63054/packages/feedback/src/screenshot.dart.lib.js:82:43)
    at Generator.next (<anonymous>)
    at runBody (http://localhost:63054/dart_sdk.js:37699:34)
    at Object._async [as async] (http://localhost:63054/dart_sdk.js:37730:7)
    at http://localhost:63054/packages/feedback/src/screenshot.dart.lib.js:79:70
    at http://localhost:63054/dart_sdk.js:32076:33
    at internalCallback (http://localhost:63054/dart_sdk.js:23835:11)

@ueman ueman pinned this issue Feb 8, 2021
@ueman
Copy link
Owner

ueman commented Feb 9, 2021

Has anyone of you tried this with flutter build web --web-renderer canvaskit?
I could imagine that it will work, but I haven't tried it, as I am not a user of Flutter for web.

See https://flutter.dev/docs/development/tools/web-renderers for further details.

@ueman
Copy link
Owner

ueman commented Mar 26, 2021

Flutter for Web is supported in version 1.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation up-for-grabs web
Projects
None yet
Development

No branches or pull requests

3 participants