Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Supported HTML Elements

Matthew Whitaker edited this pageMay 12, 2023 ·5 revisions

List of Supported HTML Elements

Detailed Guides

Below are detailed guides for some of the supported HTML elements so you can make better use of available features and debug your app if you encounter problems.

<a>

You can use theonLinkTap callback to receive all interactions with<a> elements.

Example: UsingonLinkTap

Html(  data:'<a href="https://github.com">GitHub</a>',  onLinkTap: (url) {//Do something with url, e.g. launch(url);  },),

<audio>

NOTE:<audio> requires that you add the packageflutter_html_audio as a dependency.

Support for the<audio> tag is turned off by default. To enable it, add the flutter_html_audio package as a dependency and configure yourHtml widget:

Html(  data: ...,  extensions: [// Add this to your extensionsAudioHtmlExtension(),  ],)

<hr>

Renders a horizontal bar.<hr> is styled using theborder property. Seehttps://www.w3schools.com/howto/howto_css_style_hr.asp for more details. Other than only producingsolid-style borders (nodashed ordotted),flutter_html fully supports the code example on that page.

<iframe>

NOTE:<iframe> requires that you add the packageflutter_html_iframe as a dependency.

Support for the<iframe> tag is turned off by default. To enable it, add the flutter_html_iframe package as a dependency and configure yourHtml widget:

Html(  data: ...,  extensions: [// Add this to your extensionsIframeHtmlExtension(),  ],)

<img>

Coming Soon!

<math>

NOTE:<math> requires that you add the packageflutter_html_math as a dependency.

Support for the<math> tag is turned off by default. To enable it, add the flutter_html_math package as a dependency and configure yourHtml widget:

Html(  data: ...,  extensions: [// Add this to your extensionsMathHtmlExtension(),  ],)

<ruby>

Coming Soon!

<svg>

NOTE:<svg> requires that you add the packageflutter_html_svg as a dependency.

Support for the<svg> tag is turned off by default. To enable it, add the flutter_html_svg package as a dependency and configure yourHtml widget:

Html(  data: ...,  extensions: [// Add this to your extensionsSvgHtmlExtension(),  ],)

<table>

NOTE:<table> and related tags require that you add the packageflutter_html_table as a dependency.

Support for the<table> tag and related tags are turned off by default. To enable them, add the flutter_html_table package as a dependency and configure yourHtml widget:

Html(  data: ...,  extensions: [// Add this to your extensionsTableHtmlExtension(),  ],)

<video>

NOTE:<video> requires that you add the packageflutter_html_video as a dependency.

Support for the<video> tag is turned off by default. To enable it, add the flutter_html_video package as a dependency and configure yourHtml widget:

Html(  data: ...,  extensions: [// Add this to your extensionsVideoHtmlExtension(),  ],)

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp