fwfh_svg

Last updated:

0 purchases

fwfh_svg Image
fwfh_svg Images
Add to Cart

Description:

fwfh svg

SvgFactory #



WidgetFactory extension to render SVG with flutter_svg plugin.
This is a companion add-on for flutter_widget_from_html_core package.
Getting Started #
Add this to your app's pubspec.yaml file:
dependencies:
flutter_widget_from_html_core: any
fwfh_svg: ^0.8.3
copied to clipboard
Usage #
Then use HtmlWidget with a custom factory:
import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart';
import 'package:fwfh_svg/fwfh_svg.dart';

// ...

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

// ...

class MyWidgetFactory extends WidgetFactory with SvgFactory {
}
copied to clipboard
Configuration #
SvgFactory has a few getters to change its behavior.
See the API reference for the up to date list.
Override them in your factory like this:
class MyWidgetFactory extends WidgetFactory with SvgFactory {
@override
bool get svgAllowDrawingOutsideViewBox => true;
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.