fwfh_webview
0.15.8, released 2 months ago by daohoangson.com
WidgetFactory extension to render IFRAME elements using the official WebView plugin.
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.
- desktop_webview_window
Show a native webview window on your Flutter desktop application.
94Compare - webview_flutter_plus
Extension of webview_flutter to load local HTML, CSS, and JS from assets or strings via a local server.
79Compare - webview_flutter_web
WebView widget implementation for Flutter web.
50Compare - webview_windows
A WebView2-powered webview implementation for the Windows platform.
50Compare
Works with
Packages commonly used together with fwfh_webview: ones it builds on, ones built on it, and its own family.
- webfwfh_webview depends on itLightweight bindings for browser APIs via JS interop
- loggingfwfh_webview depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- webview_flutter_wkwebviewfwfh_webview depends on itA Flutter plugin providing a WebView widget based on Apple's WKWebView control.
- webview_flutter_androidfwfh_webview depends on itAndroid implementation of the webview_flutter plugin providing a WebView widget.
- webview_flutterfwfh_webview depends on itFlutter plugin that embeds a native WebView widget.
- flutter_widget_from_html_corefwfh_webview depends on itRender HTML content as native Flutter widgets with correctness and extensibility.
- fwfh_svgSame familyWidgetFactory extension to render SVG inside HTML widgets via flutter_svg.
- fwfh_url_launcherSame familyWidgetFactory mixin to launch links in HTML widgets via url_launcher.