flutter_webview_plugin
0.4.0, released 5 years ago by fluttercommunity.dev
Plugin that allows Flutter to communicate with a native WebView.
WASM-readyQuiet but busy
What it does
Allows embedding native WebViews into Flutter apps on Android and iOS. Provides a singleton instance to control navigation, execute JavaScript, manage cookies, and listen to webview events.
AI-written summary of version 0.4.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display web content inside your mobile Flutter application
- You need programmatic control over web navigation, cookies, and JavaScript injection
Skip it when
- You need the WebView to integrate seamlessly within the Flutter widget tree without blocking overlapping widgets
- You want to use the actively maintained official WebView plugin instead of a deprecated community plugin
Strengths
- Provides a rich set of APIs for controlling navigation, cookies, and resizing
- Supports event streams for URL changes, state changes, and scrolling
Weaknesses
- The WebView is a native view rendered on top of the Flutter view, preventing overlapping widgets like snackbars or dialogs
- The community plugin is deprecated in favor of the official WebView plugin
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Requires adding NSAppTransportSecurity keys to ios/Runner/Info.plist for iOS.
new MaterialApp(
routes: {
"/": (_) => new WebviewScaffold(
url: "https://www.google.com",
appBar: new AppBar(
title: new Text("Widget webview"),
),
),
},
);Alternatives
Packages that do the same job and could replace flutter_webview_plugin.
- webview_flutter
It is the official and actively maintained WebView plugin supported by the Flutter Team.
87Compare