webview_flutter_wkwebview
3.27.2, released 4 weeks ago by flutter.dev
A Flutter plugin providing a WebView widget based on Apple's WKWebView control.
What it does
It implements Apple's WKWebView for Flutter applications on iOS and macOS platforms. It supports loading files, cookie management, JavaScript windows, and external native APIs.
AI-written summary of version 3.27.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to render web content inside your Flutter application specifically targeting iOS and macOS.
- You are using the endorsed webview_flutter package and need platform-specific WKWebView parameters or direct API access.
Skip it when
- You need a cross-platform solution that also covers Android, as this package is strictly for iOS and macOS.
- You want to avoid platform views and native web components.
Strengths
- Native Apple WKWebView implementation with high performance.
- Supports external native APIs for iOS applications and packages.
- Endorsed plugin that automatically integrates with webview_flutter.
Weaknesses
- Limited only to iOS and macOS platforms.
- Relies on platform views which can come with platform-specific limitations or rendering bugs.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Endorsed plugin, so it is automatically included when using webview_flutter. Can be added to pubspec.yaml directly if importing it for platform-specific APIs.
final params = WebKitWebViewWidgetCreationParams(
controller: controller,
uiKitGestureBlockingPolicy: WKKitGestureBlockingPolicy.doNotBlockGesture,
);Alternatives
Packages that do the same job and could replace webview_flutter_wkwebview.
- desktop_webview_window
Show a native webview window on your Flutter desktop application.
94Compare - webview_all
A cross-platform WebView plugin for Android, iOS, macOS, Windows, Linux, Web, and OpenHarmony.
87Compare - zikzak_inappwebview
A Flutter plugin providing inline WebView, headless WebView, and in-app browser features.
80Compare - webcontent_converter
Convert web content, URIs, or HTML strings to image bitmaps or PDF files across platforms.
70Compare
Works with
Packages commonly used together with webview_flutter_wkwebview: ones it builds on, ones built on it, and its own family.
- webview_flutter_androidSame familyAndroid implementation of the webview_flutter plugin providing a WebView widget.
- webview_flutter_webSame familyWebView widget implementation for Flutter web.
- webview_flutterBuilt on webview_flutter_wkwebviewFlutter plugin that embeds a native WebView widget.
- google_mobile_adsBuilt on webview_flutter_wkwebviewFlutter plugin to show AdMob banner, interstitial, rewarded and native ads.
- fwfh_webviewBuilt on webview_flutter_wkwebviewWidgetFactory extension to render IFRAME elements using the official WebView plugin.
- youtube_player_iframeBuilt on webview_flutter_wkwebviewFlutter widget for embedding YouTube videos via the official iFrame API
- model_viewer_plusBuilt on webview_flutter_wkwebviewA Flutter widget for rendering interactive 3D models in glTF and GLB formats.
- webview_flutter_plusBuilt on webview_flutter_wkwebviewExtension of webview_flutter to load local HTML, CSS, and JS from assets or strings via a local server.