Skip to content

Conversation

@yjbanov
Copy link
Contributor

@yjbanov yjbanov commented Dec 8, 2020

Document the nuances of displaying images on the web. A question that's particularly common is how to render cross-origin images in CanvasKit.

@yjbanov yjbanov requested a review from sfshaza2 December 8, 2020 00:32
@google-cla google-cla bot added the cla: yes Contributor has signed the Contributor License Agreement label Dec 8, 2020

### Use <img> in a platform view.

Flutter supports embedding HTML inside the app using [HtmlElementView][17]. Use
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed an issue to add sample code for this: #5063

Copy link
Contributor

@sfshaza2 sfshaza2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor nits, otherwise LGTM!

@@ -0,0 +1,161 @@
---
title: Displaying images on the web.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the period from the title.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

them.

# Background

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You must have at least one line of text between levels of headers.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


### Host your images in a CORS-enabled CDN.

Typically content delivery networks (CDN) can be configured to customize what
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comma after Typically.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@yjbanov yjbanov merged commit 2277d2a into flutter:master Dec 13, 2020
filiph pushed a commit to filiph/website that referenced this pull request Feb 22, 2021
* Document how images work on the web

* address comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Contributor has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants