WidgetFactory class Null safety

A factory to build widgets.




anchorRegistry → AnchorRegistry
Gets the current anchor registry. [...]
@protected, read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


buildAlign(BuildMetadata meta, Widget child, AlignmentGeometry alignment, {double? heightFactor, double? widthFactor}) Widget?
Builds Align.
buildAspectRatio(BuildMetadata meta, Widget child, double aspectRatio) Widget?
Builds AspectRatio.
buildBodyWidget(BuildContext context, Widget child) Widget
Builds body widget.
buildColumnPlaceholder(BuildMetadata meta, Iterable<WidgetPlaceholder> children) WidgetPlaceholder?
Builds column placeholder.
buildColumnWidget(BuildContext context, List<Widget> children, {TextDirection? dir}) Widget
Builds Column.
buildDecoration(BuildMetadata meta, Widget child, {BoxBorder? border, BorderRadius? borderRadius, Color? color, bool isBorderBox = true}) Widget?
Builds Decoration. [...]
buildDivider(BuildMetadata meta) Widget?
Builds 1-pixel-height divider.
buildGestureDetector(BuildMetadata meta, Widget child, GestureTapCallback onTap) Widget?
Builds GestureDetector.
buildHorizontalScrollView(BuildMetadata meta, Widget child) Widget?
Builds horizontal scroll view.
buildImage(BuildMetadata meta, ImageMetadata data) Widget?
Builds image widget from an ImageMetadata.
buildImageWidget(BuildMetadata meta, ImageSource src) Widget?
Builds Image.
buildListMarker(BuildMetadata meta, TextStyleHtml tsh, String listStyleType, int index) Widget?
Builds marker widget for a list item.
buildPadding(BuildMetadata meta, Widget child, EdgeInsetsGeometry padding) Widget?
Builds Padding.
buildText(BuildMetadata meta, TextStyleHtml tsh, InlineSpan text) Widget?
Builds RichText.
buildTextSpan({List<InlineSpan>? children, GestureRecognizer? recognizer, TextStyle? style, String? text}) InlineSpan?
Builds TextSpan.
buildTooltip(BuildMetadata meta, Widget child, String message) Widget?
Builds Tooltip.
dispose() → void
Called when the HtmlWidget's state is disposed.
flatten(BuildMetadata meta, BuildTree tree) Iterable<WidgetPlaceholder>
Flattens a BuildTree into widgets.
gestureTapCallback(String url) GestureTapCallback?
Prepares GestureTapCallback.
getDependencies(BuildContext context) Iterable
Returns context-based dependencies. [...]
getListMarkerText(String type, int i) String
Returns marker text for the specified list style type at index i.
imageProviderFromAsset(String url) ImageProvider<Object>?
Returns an AssetImage.
imageProviderFromDataUri(String dataUri) ImageProvider<Object>?
Returns a MemoryImage.
imageProviderFromFileUri(String url) ImageProvider<Object>?
Returns a FileImage.
imageProviderFromNetwork(String url) ImageProvider<Object>?
Returns a NetworkImage.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
onErrorBuilder(BuildContext context, BuildMetadata meta, [dynamic error, dynamic data]) Widget?
Builder for error widget if a complicated element failed to render. [...]
onLoadingBuilder(BuildContext context, BuildMetadata meta, [double? loadingProgress, dynamic data]) Widget?
Builder for loading widget while a complicated element is loading. [...]
onRoot(TextStyleBuilder rootTsb) → void
Prepares the root TextStyleBuilder.
onTapAnchor(String id, EnsureVisible scrollTo) Future<bool>
Ensures anchor is visible. [...]
onTapCallback(String url) Future<bool>
Calls HtmlWidget.onTapUrl with url. [...]
onTapUrl(String url) Future<bool>
Handles user tapping a link.
parse(BuildMetadata meta) → void
Parses meta for build ops and text styles.
parseStyle(BuildMetadata meta, Declaration style) → void
Parses inline style key and value pair.
parseStyleDisplay(BuildMetadata meta, String? value) → void
Parses display inline style.
reset(State<StatefulWidget> state) → void
Resets for a new build.
toString() String
A string representation of this object. [...]
urlFull(String url) String?
Resolves full URL with HtmlWidget.baseUrl if available.


operator ==(Object other) bool
The equality operator. [...]

Static Properties

debugDeterministicLoadingWidget bool
Setting this property to true replaces the default loading widget with a static Text. This property is most useful for testing purposes. [...]
read / write