Skip to content

[webview_flutter] Make iOS background lossless #178870

@stuartmorgan-g

Description

@stuartmorgan-g

setBackground in the webview_flutter_wkwebview is using an int? to represent the color, which, now that Color uses full doubles for r/g/b/a, like UIColor does (to support wide gamut) is lossy. For now I'm replacing the deprecated value used to set that with the equivalent toARGB(), but that's not actually the right solution.

I was going to use a simple data object since proxying UIColor seemed like overkill for this, but discovered that Proxy API doesn't allow using data classes, so I'm filing this for figuring out what the best way to handle this is.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listp: webviewThe WebView pluginpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyteam-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions