fl_webview library

Classes

AndroidWebView
CookieManager
Manages cookies pertaining to all WebViews.
ExtendedFlWebViewWithScrollView
固定的 webView 高度,建议设置为当前可视高度 滚动中不会卡顿 Fixed webView height. It is recommended to set it to the current viewable height There is no lag in scrolling
FlAdaptHeightWevView
webView content 有多高, widget 就有多高 在ios 如果 webView 太高 图片太多 滑动会卡顿 仅适用 内容比较少的时候 The widget is as tall as the WebView content is on ios, if the WebView is too high and there are too many images, swiping will stall only applicable when there is little content
FlWebView
FlWebViewMethodChannel
HtmlData
IOSWebView
JavascriptChannel
A named channel for receiving messaged from JavaScript code running inside a web view.
JavascriptMessage
A message that was sent by JavaScript code running in a WebView.
MacOSWebView
Information about a navigation action that is about to be executed.
UrlData
WebResourceError
Error returned in WebView.onWebResourceError when a web resource loading error has occurred.
WebSetting<T>
WebSettings
WebViewCallbacksHandler
WebViewController
WebViewParams
WebViewPlatform

Enums

AutoMediaPlaybackPolicy
Specifies possible restrictions on automatic media playback.
JavascriptMode
A decision on how to handle a navigation request.
PresentationStyle
ScrollPositioned
Scroll Positioned
WebResourceErrorType
Possible error type categorizations used by WebResourceError.

Typedefs

ContentSizeCallback = void Function(Size frameSize, Size contentSize)
Width and height of web content
ExtendedFlWebViewBuilder = Widget Function(ContentSizeCallback onContentSizeChanged, WebViewCreatedCallback onWebViewCreated, ScrollChangedCallback onScrollChanged)
返回的Widget树中需要包含FlWebView The Widget tree returned needs to include FlWebView
FlAdaptHeightWevViewBuilder = Widget Function(ContentSizeCallback onContentSizeChanged, ScrollChangedCallback onScrollChanged, WebViewCreatedCallback? onWebViewCreated, bool useProgressGetContentSize)
JavascriptMessageHandler = void Function(JavascriptMessage message)
Callback type for handling messages sent from Javascript running in a web view.
NestedScrollViewBuilder = Widget Function(ScrollController controller, bool canScroll, Widget webView)
返回的Widget树中需要包含ScrollView The Widget tree returned needs to include ScrollView
PageFinishedCallback = void Function(String url)
Signature for when a WebView has finished loading a page.
PageLoadingCallback = void Function(int progress)
Signature for when a WebView is loading a page.
PageStartedCallback = void Function(String url)
Signature for when a WebView has started loading a page.
ScrollChangedCallback = void Function(Size frameSize, Size contentSize, Offset offset, ScrollPositioned positioned)
Component size, WebView and wkwebview , scroll offset
WebResourceErrorCallback = void Function(WebResourceError error)
Signature for when a WebView has failed to load a resource.
WebViewCreatedCallback = void Function(WebViewController controller)
WebViewPlatformCreatedCallback = void Function(FlWebViewMethodChannel? webController)