Installation
Add the app-facing package:
dependencies: webview_all: ^1.3.6Run:
flutter pub getThe main package registers platform implementations through Flutter’s federated plugin mechanism:
flutter: plugin: platforms: android: default_package: webview_all_android ios: default_package: webview_all_wkwebview macos: default_package: webview_all_wkwebview linux: default_package: webview_all_linux windows: default_package: webview_all_windows ohos: default_package: webview_all_ohos web: default_package: webview_all_webWhen to Add Platform Packages Directly
Section titled “When to Add Platform Packages Directly”If your app only uses the common API, webview_all is enough.
If you cast to a platform implementation, add that package explicitly so the import is available to your app:
dependencies: webview_all: ^1.3.6 webview_all_windows: ^1.3.6 webview_all_linux: ^1.3.6 webview_all_ohos: ^1.3.6 webview_all_web: ^1.3.6 webview_all_android: ^1.3.6 webview_all_wkwebview: ^1.3.6Then import only the packages you need:
import 'package:webview_all/webview_all.dart';import 'package:webview_all_windows/webview_all_windows.dart';import 'package:webview_all_linux/webview_all_linux.dart';import 'package:webview_all_ohos/webview_all_ohos.dart';import 'package:webview_all_web/webview_all_web.dart';import 'package:webview_all_android/webview_all_android.dart';import 'package:webview_all_wkwebview/webview_all_wkwebview.dart';Version Contract
Section titled “Version Contract”The 1.3.6 release is aligned across webview_platform_interface and all
webview_all_* packages. The wrapper depends on
webview_platform_interface ^1.3.6, webview_all_android ^1.3.6, and
webview_all_wkwebview ^1.3.6.
Keep the platform packages on the same minor line as the wrapper unless you are intentionally testing a platform package in isolation.