flutter_html library
Classes
- AnchorKey
- AutoOrLengthOrPercent
- CSSBoxParentData
- CssBoxWidget
- CustomRender
- DetailsContentElement
- Dimension
- Represents a CSS dimension https://drafts.csswg.org/css-values/#dimensions
- EmptyContentElement
- EmptyLayoutElement
- FontSize
- Height
- Html
- HtmlParser
- 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
- Length
- This dimension takes a value with a length unit such as px or em. Note that these can be fixed or relative (but they must not be a percent)
- LengthOrPercent
- This dimension takes a value with a length-percent unit such as px or em or %. Note that these can be fixed or relative (but they must not be a percent)
- LineHeight
- ListStyleImage
- Margin
- Margins
- 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
- SelectableCustomRender
- SelectableHtml
- Style
- This class represents all the available CSS attributes for this package.
- StyledElement
- A StyledElement applies a style to all of its children.
- TableCellElement
- TableRowLayoutElement
- TableSectionLayoutElement
- TableStyleElement
- TextContentElement
- TextContentElement is a ContentElement with plaintext as its content.
- Width
- The Width class takes in a value and units, and defaults to px if no units are provided. A helper constructor, Width.auto constructor is provided for convenience.
Enums
- Display
- Gesture
- A Gesture indicates the type of interaction by a user.
- ListStylePosition
- ListStyleType
- TextTransform
- Unit
- A Unit represents a CSS unit
- UnitType
- These are the base unit types
- VerticalAlign
- WhiteSpace
Extensions
- ClampedEdgeInsets on EdgeInsetsGeometry
-
DeepCopy
on ListQueue<
Counter> - IterateLetters on String
- Normalize on Dimension
Functions
-
assetImageRender(
{double? width, double? height}) → CustomRender -
assetUriMatcher(
) → CustomRenderMatcher -
base64ImageRender(
) → CustomRender -
blockElementMatcher(
) → CustomRenderMatcher -
blockElementRender(
{Style? style, List< InlineSpan> ? children}) → CustomRender -
dataUriMatcher(
{String? encoding = 'base64', String? mime}) → CustomRenderMatcher -
fallbackMatcher(
) → CustomRenderMatcher -
fallbackRender(
{Style? style, List< InlineSpan> ? children}) → CustomRender -
generateDefaultRenders(
) → Map< CustomRenderMatcher, CustomRender> -
interactableElementMatcher(
) → CustomRenderMatcher -
interactableElementRender(
{List< InlineSpan> ? children}) → CustomRender -
layoutElementMatcher(
) → CustomRenderMatcher -
layoutElementRender(
{Widget? child}) → CustomRender -
listElementMatcher(
) → CustomRenderMatcher -
listElementRender(
{Style? style, Widget? child, List< InlineSpan> ? children}) → CustomRender -
networkImageRender(
{Map< String, String> ? headers, String mapUrl(String?)?, double? width, double? height, Widget altWidget(String?)?, Widget loadingWidget()?}) → CustomRender -
networkSourceMatcher(
{List< String> schemas = const ["https", "http"], List<String> ? domains, String? extension}) → CustomRenderMatcher -
numberToFontSize(
String num) → FontSize -
parseInteractableElement(
Element element, List< StyledElement> children) → StyledElement -
parseLayoutElement(
Element element, List< StyledElement> children) → LayoutElement -
parseReplacedElement(
Element element, List< StyledElement> children) → ReplacedElement -
parseStyledElement(
Element element, List< StyledElement> children) → StyledElement -
parseTableCellElement(
Element element, List< StyledElement> children) → TableCellElement -
parseTableDefinitionElement(
Element element, List< StyledElement> children) → TableStyleElement -
replacedElementMatcher(
) → CustomRenderMatcher -
replacedElementRender(
{PlaceholderAlignment? alignment, TextBaseline? baseline, Widget? child}) → CustomRender -
tagMatcher(
String tag) → CustomRenderMatcher -
textContentElementMatcher(
) → CustomRenderMatcher -
textContentElementRender(
{String? text}) → CustomRender -
verticalAlignMatcher(
) → CustomRenderMatcher -
verticalAlignRender(
{double? verticalOffset, Style? style, List< InlineSpan> ? children}) → CustomRender
Typedefs
- CustomRenderMatcher = bool Function(RenderContext context)
- ListCharacter = String Function(int i)
-
OnCssParseError
= String? Function(String css, List<
Message> errors) -
OnTap
= void Function(String? url, RenderContext context, Map<
String, String> attributes, Element? element)