|
|
@@ -120,6 +120,10 @@ class FlutterWebviewPlugin {
|
|
|
/// It is always enabled in UIWebView of iOS and can not be disabled.
|
|
|
/// - [withLocalUrl]: allow url as a local path
|
|
|
/// Allow local files on iOs > 9.0
|
|
|
+ /// - [localUrlScope]: allowed folder for local paths
|
|
|
+ /// iOS only.
|
|
|
+ /// If null and withLocalUrl is true, then it will use the url as the scope,
|
|
|
+ /// allowing only itself to be read.
|
|
|
/// - [scrollBar]: enable or disable scrollbar
|
|
|
/// - [supportMultipleWindows] enable multiple windows support in Android
|
|
|
/// - [invalidUrlRegex] is the regular expression of URLs that web view shouldn't load.
|
|
|
@@ -144,6 +148,7 @@ class FlutterWebviewPlugin {
|
|
|
bool displayZoomControls,
|
|
|
bool withLocalStorage,
|
|
|
bool withLocalUrl,
|
|
|
+ String localUrlScope,
|
|
|
bool withOverviewMode,
|
|
|
bool scrollBar,
|
|
|
bool supportMultipleWindows,
|
|
|
@@ -166,6 +171,7 @@ class FlutterWebviewPlugin {
|
|
|
'displayZoomControls': displayZoomControls ?? false,
|
|
|
'withLocalStorage': withLocalStorage ?? true,
|
|
|
'withLocalUrl': withLocalUrl ?? false,
|
|
|
+ 'localUrlScope': localUrlScope,
|
|
|
'scrollBar': scrollBar ?? true,
|
|
|
'supportMultipleWindows': supportMultipleWindows ?? false,
|
|
|
'appCacheEnabled': appCacheEnabled ?? false,
|