Flutter · Android · iOS
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.
No Web or desktop targets. Two platforms, kept behaviourally identical.
A controller, a widget and immutable settings. The controller owns the WebView, so it survives widget rebuilds.
JavaScript channels, navigation control, request interception, client certificates, zoom control, dark mode, system browser, cookies, user scripts, popups, PDF export and file selection.
final controller = AdvancedWebViewController(
onPageFinished: (url) => debugPrint('loaded $url'),
)..loadUrl('https://flutter.dev');
// In build():
AdvancedWebView(controller: controller)final controller = AdvancedWebViewController(
onNavigationRequest: (request) =>
request.url.startsWith('https://')
? NavigationDecision.navigate
: NavigationDecision.prevent,
);final controller = AdvancedWebViewController(
javaScriptChannels: {
'app': (message) => debugPrint('from JS: $message'),
},
);
// In the page: window.app.postMessage('hello')Same calls, same results on Android and iOS.
Call window.name.postMessage(String) from the page, on both platforms.
Each Dart API next to the native Android and iOS API behind it.
Browse the table →Install advanced_webview and show your first page in a minute.