|
|
@@ -111,6 +111,10 @@ class FlutterWebviewPlugin {
|
|
|
/// - [invalidUrlRegex] is the regular expression of URLs that web view shouldn't load.
|
|
|
/// For example, when webview is redirected to a specific URL, you want to intercept
|
|
|
/// this process by stopping loading this URL and replacing webview by another screen.
|
|
|
+ /// Android only settings:
|
|
|
+ /// - [displayZoomControls]: display zoom controls on webview
|
|
|
+ /// - [withOverviewMode]: enable overview mode for Android webview ( setLoadWithOverviewMode )
|
|
|
+ /// - [useWideViewPort]: use wide viewport for Android webview ( setUseWideViewPort )
|
|
|
Future<Null> launch(String url, {
|
|
|
Map<String, String> headers,
|
|
|
bool withJavascript,
|
|
|
@@ -121,8 +125,10 @@ class FlutterWebviewPlugin {
|
|
|
Rect rect,
|
|
|
String userAgent,
|
|
|
bool withZoom,
|
|
|
+ bool displayZoomControls,
|
|
|
bool withLocalStorage,
|
|
|
bool withLocalUrl,
|
|
|
+ bool withOverviewMode,
|
|
|
bool scrollBar,
|
|
|
bool supportMultipleWindows,
|
|
|
bool appCacheEnabled,
|
|
|
@@ -141,6 +147,7 @@ class FlutterWebviewPlugin {
|
|
|
'enableAppScheme': enableAppScheme ?? true,
|
|
|
'userAgent': userAgent,
|
|
|
'withZoom': withZoom ?? false,
|
|
|
+ 'displayZoomControls': displayZoomControls ?? false,
|
|
|
'withLocalStorage': withLocalStorage ?? true,
|
|
|
'withLocalUrl': withLocalUrl ?? false,
|
|
|
'scrollBar': scrollBar ?? true,
|
|
|
@@ -150,6 +157,7 @@ class FlutterWebviewPlugin {
|
|
|
'useWideViewPort': useWideViewPort ?? false,
|
|
|
'invalidUrlRegex': invalidUrlRegex,
|
|
|
'geolocationEnabled': geolocationEnabled ?? false,
|
|
|
+ 'withOverviewMode': withOverviewMode ?? false,
|
|
|
'debuggingEnabled': debuggingEnabled ?? false,
|
|
|
};
|
|
|
|