Skip to content
pubscout

fwfh_webview

0.15.8, released 2 months ago by daohoangson.com

WidgetFactory extension to render IFRAME elements using the official WebView plugin.

WASM-ready
$ flutter pub add fwfh_webview
Source repository

What it does

Extends flutter_widget_from_html_core to render HTML IFRAME elements as native WebViews using the official webview_flutter plugin. It supports configurable settings such as JavaScript, user agents, debugging, and media playback.

AI-written summary of version 0.15.8, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are using flutter_widget_from_html_core and need to render IFRAMEs as WebViews.
  • You need configurable WebView behaviors like custom user agents or media playback permissions inside HTML content.

Skip it when

  • You are not using flutter_widget_from_html_core.
  • You need a standalone full-screen webview browser rather than inline HTML rendering.

Strengths

  • Seamless integration with flutter_widget_from_html_core via mixins.
  • Configurable getters for controlling WebView properties like debugging, gestures, and user agents.

Weaknesses

  • Strictly tied to flutter_widget_from_html_core as a companion add-on.
  • Relies on native webview implementations which can add overhead.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
6

Add both flutter_widget_from_html_core and fwfh_webview to pubspec.yaml, then create a custom WidgetFactory mixing in WebViewFactory.

class MyWidgetFactory extends WidgetFactory with WebViewFactory {
  bool get webViewMediaPlaybackAlwaysAllow => true;
  String? get webViewUserAgent => 'My app';
}

Alternatives

Packages that do the same job and could replace fwfh_webview.

Works with

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