flutter_widget_from_html_core library Null safety

Classes

BuildBit<InputType, OutputType>
A piece of HTML being built.
BuildMetadata
A building element metadata.
BuildOp
A building operation to customize how a DOM element is rendered.
BuildTree
A tree of BuildBits.
ColumnMode
A render mode that builds HTML into a Column widget.
CssBlock
A CSS block.
CssBorder
A border of a box.
CssBorderSide
A side of a border of a box.
CssLength
A length measurement.
CssLengthBox
A set of length measurements.
CssRadius
A radius.
CssSizing
A CSS sizing widget.
CssSizingValue
A CssSizing value.
HtmlDetails
HtmlDetailsContents
HtmlDetailsMarker
HtmlListItem
A list item widget.
HtmlListMarker
A list marker.
HtmlRuby
A RUBY widget.
HtmlSummary
HtmlTable
A TABLE widget.
HtmlTableCell
A TD (table cell) widget.
HtmlTableCompanion
Companion data for table.
HtmlTableValignBaseline
A valign=baseline widget.
HtmlWidget
A widget that builds Flutter widget tree from HTML (supports most popular tags and stylings).
HtmlWidgetState
State for a HtmlWidget.
ImageMetadata
An image.
ImageSource
An image source.
ListViewMode
A render mode that builds HTML into a ListView widget.
RebuildTriggers
A set of values that should trigger rebuild.
RenderMode
A render mode.
SliverListMode
A render mode that builds HTML into a SliverList widget.
TextBit
A simple text bit.
TextStyleBuilder<T1>
A text styling builder.
TextStyleHtml
A text style.
WhitespaceBit
A whitespace bit.
WidgetBit
A widget bit.
WidgetFactory
A factory to build widgets.
WidgetPlaceholder<T>
A widget builder that supports builder callbacks.

Extensions

CssAngleTermExtension
An extension on css.AngleTerm.
CssDeclarationExtension
An extension on css.Declaration.
CssFunctionTermExtension
An extension on css.FunctionTerm.
CssLiteralTermExtension
An extension on css.LiteralTerm.
CssNumberTermExtension
An extension on css.NumberTerm.
CssPercentageTermExtension
An extension on css.PercentageTerm.
CssStyleSheetExtension
An extension on css.StyleSheet.
DomElementExtension
An extension on dom.Element.
WidgetAnchors
An extension on Widget to keep track of anchors.

Constants

kShouldBuildAsync → const int
The default character threshold to build widget tree asynchronously.
10000
widget0 → const SizedBox
A no op widget.
SizedBox.shrink()

Functions

bytesFromDataUri(String dataUri) Uint8List?
Returns Uint8List by decoding dataUri.
listOrNull<T>(T? x) Iterable<T>?
Returns List<T> if x is provided or null otherwise.
tryParseDoubleFromMap(Map<dynamic, String> map, String key) double?
Parses key from map as an double literal and return its value.
tryParseIntFromMap(Map<dynamic, String> map, String key) int?
Parses key from map as an integer literal and return its value.

Enums

CssLengthUnit
Length measurement units.
CssWhitespace
The whitespace behavior.
HtmlListMarkerType
List marker types.

Typedefs

CustomStylesBuilder = Map<String, String>? Function(Element element)
A callback to specify custom styling.
CustomWidgetBuilder = Widget? Function(Element element)
A callback to render custom widget for a DOM element.
EnsureVisible = Future<bool> Function(String id, {Curve curve, Duration duration, Curve jumpCurve, Duration jumpDuration})
A callback to scroll the anchor identified by id into the viewport.
OnErrorBuilder = Widget? Function(BuildContext context, Element element, dynamic error)
A builder function that is called if an error occurs during a complicated element rendering.
OnLoadingBuilder = Widget? Function(BuildContext context, Element element, double? loadingProgress)
A builder that specifies the widget to display to the user while a complicated element is still loading.