fwfh_url_launcher 0.11.0-alpha.1 fwfh_url_launcher: ^0.11.0-alpha.1 copied to clipboard
WidgetFactory extension to launch A tag via url_launcher plugin.
UrlLauncherFactory #
WidgetFactory extension to launch A tag via url_launcher 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_url_launcher: ^0.11.0-0
Usage #
Then use HtmlWidget
with a custom factory:
import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart';
import 'package:fwfh_url_launcher/fwfh_url_launcher.dart';
// ...
HtmlWidget(
html,
factoryBuilder: () => MyWidgetFactory(),
)
// ...
class MyWidgetFactory extends WidgetFactory with UrlLauncherFactory {
}