Skip to content
pubscout

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.

Rock solid
$ flutter pub add webview_flutter_wkwebview
Source repository

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.

Works with

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