fwfh_cached_network_image 0.14.2 copy "fwfh_cached_network_image: ^0.14.2" to clipboard
fwfh_cached_network_image: ^0.14.2 copied to clipboard

WidgetFactory extension to render IMG with cached_network_image plugin.

example/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart';
import 'package:fwfh_cached_network_image/fwfh_cached_network_image.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'fwfh_cached_network_image',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('CachedNetworkImageFactory Demo'),
        ),
        body: Center(
          child: HtmlWidget(
            '<img src="https://raw.githubusercontent.com/daohoangson/flutter_widget_from_html/0000998/demo_app/logos/icon.png" />',
            factoryBuilder: () => MyWidgetFactory(),
          ),
        ),
      ),
    );
  }
}

class MyWidgetFactory extends WidgetFactory with CachedNetworkImageFactory {}
6
likes
140
pub points
96%
popularity

Publisher

verified publisherdaohoangson.com

WidgetFactory extension to render IMG with cached_network_image plugin.

Repository (GitHub)
View/report issues

Topics

#img #fwfh

Documentation

API reference

Funding

Consider supporting this project:

patreon.com
buymeacoffee.com

License

MIT (LICENSE)

Dependencies

cached_network_image, flutter, flutter_cache_manager, flutter_widget_from_html_core

More

Packages that depend on fwfh_cached_network_image