Skip to content
pubscout

fwfh_cached_network_image

0.16.3, released 2 months ago by daohoangson.com

WidgetFactory extension to render HTML IMG tags using cached_network_image.

WASM-ready
$ flutter pub add fwfh_cached_network_image
Source repository

What it does

Provides a WidgetFactory extension for flutter_widget_from_html_core to render HTML image tags using the cached_network_image plugin. It allows cached network images to be seamlessly integrated into HTML strings rendered by HtmlWidget.

AI-written summary of version 0.16.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are using flutter_widget_from_html_core to render HTML content.
  • You need cached network images inside your HTML strings.

Skip it when

  • You are not using flutter_widget_from_html_core.
  • You only need standard image widgets without HTML parsing.

Strengths

  • Integrates seamlessly with flutter_widget_from_html_core
  • Leverages the popular cached_network_image plugin for caching

Weaknesses

  • Requires flutter_widget_from_html_core as a dependency

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3

Add dependencies to pubspec.yaml and mix in CachedNetworkImageFactory to your WidgetFactory.

class MyWidgetFactory extends WidgetFactory with CachedNetworkImageFactory {
}

HtmlWidget(
  html,
  factoryBuilder: () => MyWidgetFactory(),
)

Alternatives

Packages that do the same job and could replace fwfh_cached_network_image.

Works with

Packages commonly used together with fwfh_cached_network_image: ones it builds on, ones built on it, and its own family.