webview_windows library
A WebView2-powered webview for Flutter on Windows.
Render web content seamlessly composited into the Flutter widget tree using a WebviewController and the Webview widget.
Classes
- HistoryChanged
- A snapshot of the webview's navigation history state.
- Webview
- Embeds the web content rendered by a WebviewController into the widget tree and forwards pointer input to it.
- WebviewController
- Controls a native WebView2 instance and exposes its events as broadcast streams.
- WebviewCookie
- An HTTP cookie, as managed by the WebView2 cookie store.
- WebviewDownloadEvent
- A download lifecycle notification emitted on WebviewController.onDownloadEvent.
- WebviewValue
- The state of a WebviewController, exposed through WebviewController.value.
Enums
- LoadingState
- The document loading state.
- PointerButton
- A pointer button.
- WebErrorStatus
- The error status of a failed navigation, reported on WebviewController.onLoadError.
- WebviewCookieSameSite
- The SameSite policy of a cookie.
- WebviewDownloadEventKind
- The kind of a WebviewDownloadEvent.
- WebviewHostResourceAccessKind
- The kind of cross origin resource access allowed for host resources of a virtual host mapping.
- WebviewPermissionDecision
- The reply to a browser permission request.
- WebviewPermissionKind
- The kind of a browser permission request.
- WebviewPointerEventKind
- The kind of a forwarded pointer event.
- WebviewPopupWindowPolicy
- The policy for popup requests.
Typedefs
-
PermissionRequestedDelegate
= FutureOr<
WebviewPermissionDecision> Function(String url, WebviewPermissionKind permissionKind, bool isUserInitiated) - Invoked when the web content requests a browser permission (camera, microphone, geolocation etc.).
- ScriptID = String
- Identifies a script registered with WebviewController.addScriptToExecuteOnDocumentCreated.