Skip to content
pubscout

fwfh_url_launcher

0.16.1, released a year ago by daohoangson.com

WidgetFactory mixin to launch links in HTML widgets via url_launcher.

WASM-readyQuiet but busy
$ flutter pub add fwfh_url_launcher
Source repository

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.

Works with

Packages commonly used together with fwfh_url_launcher: ones it builds on, ones built on it, and its own family.