flutter_widget_from_html library
Classes
- BuildBit
- A piece of HTML being built.
- 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.
- CssLineHeight
- The height of text.
- CssRadius
- A radius.
- CssSizing
- A CSS sizing widget.
- CssSizingHint
- CssSizingValue
- A CssSizing value.
- Flattened
- A flattened bit.
- HorizontalMargin
- HtmlDetails
- HtmlDetailsContents
- HtmlDetailsMarker
- HtmlFlex
- HtmlListItem
- A list item widget.
- HtmlListMarker
- A list marker.
- HtmlRuby
- A RUBY widget.
- HtmlSummary
- HtmlTable
- A TABLE widget.
- HtmlTableCaption
- A table caption widget.
- HtmlTableCell
- A TD (table cell) widget.
- HtmlWidget
- A widget that builds Flutter widget tree from HTML with support for IFRAME, VIDEO and many other tags.
- HtmlWidgetState
-
State for a
HtmlWidget
. - ImageMetadata
- An image.
- ImageSource
- An image source.
- InheritanceResolvers
- A set of resolvers for InheritedProperties.
- InheritedProperties
- A set of inherited properties.
- InlineCustomWidget
- A custom inline Widget.
- ListViewMode
- A render mode that builds HTML into a ListView widget.
-
LockableList<
T> - A collection of values, that may be locked to prevent modification.
- NormalLineHeight
- The default height of text.
- RenderMode
- A render mode.
- SliverListMode
- A render mode that builds HTML into a SliverList widget.
- TextBit
- A simple text bit.
- TextScaleFactor
- The number of font pixels for each logical pixel.
- ValignBaseline
-
A
valign=baseline
widget. - ValignBaselineContainer
- WhitespaceBit
- A whitespace bit.
-
WidgetBit<
T> - A widget bit.
- WidgetFactory
-
A factory to build widgets with
WebView
,VideoPlayer
, etc. - WidgetPlaceholder
- A widget builder that can be extended with callbacks.
Enums
- CssLengthUnit
- Length measurement units.
- CssWhitespace
- The whitespace behavior.
- HtmlListMarkerType
- List marker types.
Mixins
- NonInheritedPropertiesOwner
- A mixin that can manage non-inherited properties.
Extensions
- BuildMetadataLegacy on BuildMetadata
- CssAngleTermExtension on AngleTerm
-
An extension on
css.AngleTerm
. - CssDeclarationExtension on Declaration
-
An extension on
css.Declaration
. - CssFunctionTermExtension on FunctionTerm
-
An extension on
css.FunctionTerm
. - CssLiteralTermExtension on LiteralTerm
-
An extension on
css.LiteralTerm
. - CssNumberTermExtension on NumberTerm
-
An extension on
css.NumberTerm
. - CssPercentageTermExtension on PercentageTerm
-
An extension on
css.PercentageTerm
. - CssStyleSheetExtension on StyleSheet
-
An extension on
css.StyleSheet
. - DomElementExtension on Element
-
An extension on
dom.Element
. - LegacyTextStyleBuilder on TextStyleBuilder
- LegacyTextStyleHtml on TextStyleHtml
- LegacyWidgetFactory on WidgetFactory
Constants
- kPriorityDefault → const int
- kPriorityInlineBlockDefault → const int
- kShouldBuildAsync → const int
- The default character threshold to build widget tree asynchronously.
- widget0 → const SizedBox
- A no op widget.
Functions
-
bytesFromDataUri(
String dataUri) → Uint8List? -
Returns Uint8List by decoding
dataUri
. -
listOrNull<
T> (T? x) → Iterable< T> ? -
Returns List<T> if
x
is provided ornull
otherwise. -
tryParseDoubleFromMap(
Map< dynamic, String> map, String key) → double? -
Parses
key
frommap
as an double literal and return its value. -
tryParseIntFromMap(
Map< dynamic, String> map, String key) → int? -
Parses
key
frommap
as an integer literal and return its value.
Typedefs
-
Baselines
= Map<
int, List< _ValignBaselineRenderObject> > - BuildMetadata = BuildTree
- A legacy tree of BuildBits.
- CustomStylesBuilder = StylesMap? Function(Element element)
- A callback to specify custom styling.
- CustomWidgetBuilder = Widget? Function(Element element)
- A callback to render custom widget for a DOM element.
- DefaultStyles = StylesMap Function(Element element)
- The callback that should return default styling map.
-
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. -
InheritanceResolverCallback<
T> = InheritedProperties Function(InheritedProperties resolving, T input) - A callback to resolve an InheritedProperties.
- 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.
- OnParsed = BuildTree Function(BuildTree tree)
- The callback that will be called when child elements have been processed.
- OnRenderBlock = Widget Function(BuildTree tree, WidgetPlaceholder placeholder)
- The callback that will be called during widget build.
- OnRenderedBlock = void Function(BuildTree tree, Widget block)
- The callback that will be called after widget has been built.
-
OnRenderedChildren
= WidgetPlaceholder? Function(BuildTree tree, Iterable<
WidgetPlaceholder> children) - The callback that will be called after children widgets has been built.
- OnRenderInline = void Function(BuildTree tree)
- The callback that will be called before flattening.
- OnRenderInlineBlock = Widget Function(BuildTree tree, Widget child)
- The callback that will be called after all child nodes have been parsed.
- OnVisitChild = void Function(BuildTree tree, BuildTree subTree)
- The callback that will be called before processing a child element.
-
StylesMap
= Map<
String, String> - A collection of style's key and value pairs.
-
TextStyleBuilder<
T> = InheritanceResolvers - A legacy HTML styling builder.
- TextStyleHtml = InheritedProperties
- A legacy HTML styling set.
- WidgetPlaceholderBuilder = Widget? Function(BuildContext context, Widget child)
- A callback for WidgetPlaceholder.