fl_webview
library
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.
NavigationDelegate
= FutureOr <NavigationDecision > Function(NavigationRequest navigation )
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 )