flutter_html library

Classes

AnchorKey
AudioContentElement
AudioContentElement is a ContentElement with an audio file as its content.
ContainerSpan
A ContainerSpan is a widget with an InlineSpan child or children.
DetailsContentElement
EmptyContentElement
EmptyLayoutElement
FontSize
Html
HtmlParser
ImageContentElement
ImageContentElement is a ReplacedElement with an image as its content. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img
InteractableElement
An InteractableElement is a StyledElement that takes user gestures (e.g. tap).
LayoutElement
A LayoutElement is an element that breaks the normal Inline flow of an html document with a more complex layout. LayoutElements handle
LineHeight
ListStyleType
MathElement
Information about a navigation action that is about to be executed.
RenderContext
The RenderContext is available when parsing the tree. It contains information about the BuildContext of the Html widget, contains the configuration available in the HtmlParser, and contains information about the Style of the current tree root.
ReplacedElement
A ReplacedElement is a type of StyledElement that does not require its children to be rendered.
RubyElement
SelectableHtml
Style
This class represents all the available CSS attributes for this package.
StyledElement
A StyledElement applies a style to all of its children.
StyledText
SvgContentElement
SvgContentElement is a ReplacedElement with an SVG as its contents.
TableCellElement
TableLayoutElement
TableRowLayoutElement
TableSectionLayoutElement
TableStyleElement
TextContentElement
TextContentElement is a ContentElement with plaintext as its content.
VideoContentElement
VideoContentElement is a ContentElement with a video file as its content.

Enums

Display
Gesture
A Gesture indicates the type of interaction by a user.
ListStylePosition
A decision on how to handle a navigation request.
TextTransform
VerticalAlign
WhiteSpace

Extensions

IterateLetters on String

Functions

assetImageRender({double? width, double? height}) ImageRender
assetUriMatcher() ImageSourceMatcher
base64ImageRender() ImageRender
dataUriMatcher({String? encoding = 'base64', String? mime}) ImageSourceMatcher
networkImageRender({Map<String, String>? headers, String mapUrl(String?)?, double? width, double? height, Widget altWidget(String?)?, Widget loadingWidget()?}) ImageRender
networkSourceMatcher({List<String> schemas = const ["https", "http"], List<String>? domains, String? extension}) ImageSourceMatcher
numberToFontSize(String num) FontSize
parseInteractableElement(Element element, List<StyledElement> children) InteractableElement
parseLayoutElement(Element element, List<StyledElement> children) LayoutElement
parseReplacedElement(Element element, List<StyledElement> children, NavigationDelegate? navigationDelegateForIframe) ReplacedElement
parseStyledElement(Element element, List<StyledElement> children) StyledElement
parseTableCellElement(Element element, List<StyledElement> children) TableCellElement
parseTableDefinitionElement(Element element, List<StyledElement> children) TableStyleElement
svgDataImageRender() ImageRender
svgNetworkImageRender() ImageRender

Typedefs

CustomRender = dynamic Function(RenderContext context, Widget parsedChild)
ImageRender = Widget? Function(RenderContext context, Map<String, String> attributes, Element? element)
ImageSourceMatcher = bool Function(Map<String, String> attributes, Element? element)
ListCharacter = String Function(int i)
Decides how to handle a specific navigation request.
OnCssParseError = String? Function(String css, List<Message> errors)
OnMathError = Widget Function(String parsedTex, String exception, String exceptionWithType)
OnTap = void Function(String? url, RenderContext context, Map<String, String> attributes, Element? element)