Skip to content

[web] Find an ergonomic solution for CORS images for CanvasKit and Skwasm #149843

@yjbanov

Description

@yjbanov

As of today (and we should read it as "for the foreseeable future"), CORS images cannot be rendered into WebGL/WebGPU canvases. However, there are plenty of use-cases where apps need to be able to display CORS images in their apps.

Our current solution is as follows:

  • Educate everyone about CORS.
  • Ask developers to use platform views when CORS image support is needed (there is also at least one package that removes the toil of platform views).

Based on the feedback given in #145954, this solution continues to be unergonomic for users, to a point that they are willing to use the less feature-rich HTML renderer instead of CanvasKit or Skwasm.

This feature request is to improve the ergonomics of using CORS images in Flutter web apps. Ideally we can make Image.network work out of the box. However, a separate widget, or a well-supported package, would also be acceptable.

Metadata

Metadata

Labels

P1High-priority issues at the top of the work listplatform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions