HTMLView

The HTML View widget renders a string of HTML content. This allows you to display formatted text, paragraphs, and basic HTML structures within your app.

Properties

Property
Description

content

The string of HTML content to be rendered.

shrinkWrap

If true, the widget will shrink to fit its content.

Style Overrides

You can provide style overrides for specific HTML tags. The available properties for each tag are similar to the TextStyle properties.

Property
Description

htmlStyleOverridesBody

Style overrides for the <body> tag.

htmlStyleOverridesSpan

Style overrides for <span> tags.

htmlStyleOverridesParagraph

Style overrides for <p> tags.


Default Properties

The HTML View widget supports the following section of Default Properties:

Layout

  • width

  • height

  • padding

  • margin

  • align

Last updated