@@ -111,6 +111,10 @@ class FlutterWebviewPlugin {
111111 /// - [invalidUrlRegex] is the regular expression of URLs that web view shouldn't load.
112112 /// For example, when webview is redirected to a specific URL, you want to intercept
113113 /// this process by stopping loading this URL and replacing webview by another screen.
114+ /// Android only settings:
115+ /// - [displayZoomControls] : display zoom controls on webview
116+ /// - [withOverviewMode] : enable overview mode for Android webview ( setLoadWithOverviewMode )
117+ /// - [useWideViewPort] : use wide viewport for Android webview ( setUseWideViewPort )
114118 Future <Null > launch (String url, {
115119 Map <String , String > headers,
116120 bool withJavascript,
@@ -121,8 +125,10 @@ class FlutterWebviewPlugin {
121125 Rect rect,
122126 String userAgent,
123127 bool withZoom,
128+ bool displayZoomControls,
124129 bool withLocalStorage,
125130 bool withLocalUrl,
131+ bool withOverviewMode,
126132 bool scrollBar,
127133 bool supportMultipleWindows,
128134 bool appCacheEnabled,
@@ -141,6 +147,7 @@ class FlutterWebviewPlugin {
141147 'enableAppScheme' : enableAppScheme ?? true ,
142148 'userAgent' : userAgent,
143149 'withZoom' : withZoom ?? false ,
150+ 'displayZoomControls' : displayZoomControls ?? false ,
144151 'withLocalStorage' : withLocalStorage ?? true ,
145152 'withLocalUrl' : withLocalUrl ?? false ,
146153 'scrollBar' : scrollBar ?? true ,
@@ -150,6 +157,7 @@ class FlutterWebviewPlugin {
150157 'useWideViewPort' : useWideViewPort ?? false ,
151158 'invalidUrlRegex' : invalidUrlRegex,
152159 'geolocationEnabled' : geolocationEnabled ?? false ,
160+ 'withOverviewMode' : withOverviewMode ?? false ,
153161 'debuggingEnabled' : debuggingEnabled ?? false ,
154162 };
155163
0 commit comments