fwfh_url_launcher
0.16.1, released a year ago by daohoangson.com
WidgetFactory mixin to launch links in HTML widgets via url_launcher.
What it does
Provides a UrlLauncherFactory mixin that enables <a> tags rendered by flutter_widget_from_html to open URLs using the url_launcher plugin. It bridges HTML rendering with native link handling on all supported platforms.
AI-written summary of version 0.16.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You render HTML with flutter_widget_from_html and need clickable links.
- You want cross‑platform URL launching without writing custom link handlers.
Skip it when
- You are not using flutter_widget_from_html_core.
- You need advanced url_launcher features not exposed through the mixin.
Strengths
- Very easy to add to an existing HtmlWidget factory.
- Works out‑of‑the‑box on Android, iOS, web, Windows, macOS and Linux.
Weaknesses
- Only useful together with flutter_widget_from_html_core.
- Adds an extra dependency on url_launcher.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Add url_launcher to pubspec and follow its platform‑specific setup (e.g., Android intent filters, iOS LSApplicationQueriesSchemes). No code generation required.
import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart';
import 'package:fwfh_url_launcher/fwfh_url_launcher.dart';
class MyWidgetFactory extends WidgetFactory with UrlLauncherFactory {}
HtmlWidget(
'<a href="https://example.com">Open</a>',
factoryBuilder: () => MyWidgetFactory(),
);Alternatives
Packages that do the same job and could replace fwfh_url_launcher.
- flutter_html_table
Renders HTML table tags within the flutter_html package using flutter_layout_grid.
60Compare - flutter_html_math
Renders <math> tags in flutter_html using flutter_math_fork.
56Compare - flutter_html_iframe
Renders <iframe> tags in flutter_html using webview_flutter.
55Compare
Works with
Packages commonly used together with fwfh_url_launcher: ones it builds on, ones built on it, and its own family.
- url_launcherfwfh_url_launcher depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- flutter_widget_from_html_corefwfh_url_launcher 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_cached_network_imageSame familyWidgetFactory extension to render HTML IMG tags using cached_network_image.
- fwfh_chewieSame familyRender VIDEO tags using Chewie inside HtmlWidget
- flutter_widget_from_htmlBuilt on fwfh_url_launcherRender HTML content as native Flutter widgets with support for common tags, CSS, and media.