fwfh_svg 0.6.0-rc.2021022601 copy "fwfh_svg: ^0.6.0-rc.2021022601" to clipboard
fwfh_svg: ^0.6.0-rc.2021022601 copied to clipboard

outdated

WidgetFactory extension to render SVG with flutter_svg 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_svg/fwfh_svg.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'fwfh_svg',
      home: Scaffold(
        appBar: AppBar(
          title: Text('SvgFactory Demo'),
        ),
        body: Center(
          child: HtmlWidget(
            '<img src="https://raw.githubusercontent.com/dnfield/flutter_svg/master/example/assets/flutter_logo.svg" />',
            factoryBuilder: () => MyWidgetFactory(),
          ),
        ),
      ),
    );
  }
}

class MyWidgetFactory extends WidgetFactory with SvgFactory {}
3
likes
0
points
183k
downloads

Publisher

verified publisherdaohoangson.com

Weekly Downloads

WidgetFactory extension to render SVG with flutter_svg plugin.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_svg, flutter_widget_from_html_core

More

Packages that depend on fwfh_svg