Skip to content

Flutter · Android · iOS

A simple WebView for Flutter, with everything you need.

One controller and one widget to get started. Navigation, JavaScript, cookies, downloads, permissions and more are there when you need them, and they behave the same on Android and iOS.

Android and iOS only

No Web or desktop targets. Two platforms, kept behaviourally identical.

Small public API

A controller, a widget and immutable settings. The controller owns the WebView, so it survives widget rebuilds.

Practical features

JavaScript channels, navigation control, request interception, client certificates, zoom control, dark mode, system browser, cookies, user scripts, popups, PDF export and file selection.

dart
final controller = AdvancedWebViewController(
  onPageFinished: (url) => debugPrint('loaded $url'),
)..loadUrl('https://flutter.dev');

// In build():
AdvancedWebView(controller: controller)
dart
final controller = AdvancedWebViewController(
  onNavigationRequest: (request) =>
      request.url.startsWith('https://')
          ? NavigationDecision.navigate
          : NavigationDecision.prevent,
);
dart
final controller = AdvancedWebViewController(
  javaScriptChannels: {
    'app': (message) => debugPrint('from JS: $message'),
  },
);
// In the page: window.app.postMessage('hello')

One typed API, two platforms

Same calls, same results on Android and iOS.

Navigation control

Decide every main-frame request before it loads.

Read the guide →

JavaScript channels

Call window.name.postMessage(String) from the page, on both platforms.

Read the guide →

Keep reading

Getting started

Install the package and show your first page.

Read the guide →

Platform API mapping

Each Dart API next to the native Android and iOS API behind it.

Browse the table →

Changelog

What changed in each release.

See releases →

Add a WebView to your Flutter app

Install advanced_webview and show your first page in a minute.

Released under the MIT License.