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.
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.
- image_cropper
A Flutter plugin for Android, iOS and Web supports cropping images
84Compare - fc_native_image_resize
A Flutter plugin to resize images via native APIs.
69Compare - extended_image
Extended image library with caching, placeholders, zoom/pan, slide-out, and crop editor.
80Compare - cached_network_image_ce
Community edition of cached network image using Hive for fast cache reads.
90Compare
Works with
Packages commonly used together with fwfh_cached_network_image: ones it builds on, ones built on it, and its own family.
- flutter_cache_managerfwfh_cached_network_image depends on itGeneric cache manager for saving web files and cache info on device storage.
- cached_network_imagefwfh_cached_network_image depends on itLoad and cache network images in Flutter with placeholder and error widget support.
- flutter_widget_from_html_corefwfh_cached_network_image depends on itRender HTML content as native Flutter widgets with correctness and extensibility.
- fwfh_webviewSame familyWidgetFactory extension to render IFRAME elements using the official WebView plugin.
- fwfh_svgSame familyWidgetFactory extension to render SVG inside HTML widgets via flutter_svg.
- fwfh_url_launcherSame familyWidgetFactory mixin to launch links in HTML widgets via url_launcher.
- fwfh_chewieSame familyRender VIDEO tags using Chewie inside HtmlWidget
- flutter_widget_from_htmlBuilt on fwfh_cached_network_imageRender HTML content as native Flutter widgets with support for common tags, CSS, and media.