fix name dropDownWorkaroundEnabled
This commit is contained in:
parent
26546e57fa
commit
e4625d5c9a
|
@ -16,7 +16,9 @@
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="9b41f7a2-a71e-4923-91fb-249d7815b3e7" name="Default" comment="">
|
<list default="true" id="9b41f7a2-a71e-4923-91fb-249d7815b3e7" name="Default" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/CHANGELOG.md" beforeDir="false" afterPath="$PROJECT_DIR$/CHANGELOG.md" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/CHANGELOG.md" beforeDir="false" afterPath="$PROJECT_DIR$/CHANGELOG.md" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/example/lib/main.dart" beforeDir="false" afterPath="$PROJECT_DIR$/example/lib/main.dart" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebViewClient.java" beforeDir="false" afterPath="$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebViewClient.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebViewOptions.java" beforeDir="false" afterPath="$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebViewOptions.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/lib/src/webview_options.dart" beforeDir="false" afterPath="$PROJECT_DIR$/lib/src/webview_options.dart" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<ignored path="$PROJECT_DIR$/.dart_tool/" />
|
<ignored path="$PROJECT_DIR$/.dart_tool/" />
|
||||||
<ignored path="$PROJECT_DIR$/.idea/" />
|
<ignored path="$PROJECT_DIR$/.idea/" />
|
||||||
|
@ -39,11 +41,10 @@
|
||||||
<file pinned="false" current-in-tab="false">
|
<file pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/example/lib/main.dart">
|
<entry file="file://$PROJECT_DIR$/example/lib/main.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="112">
|
<state relative-caret-position="509">
|
||||||
<caret line="169" selection-start-line="169" selection-end-line="182" selection-end-column="4" />
|
<caret line="78" column="1" selection-start-line="78" selection-start-column="1" selection-end-line="78" selection-end-column="1" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#0#12717#0" expanded="true" />
|
<element signature="e#0#20#0" expanded="true" />
|
||||||
<element signature="e#1907#1927#0" expanded="true" />
|
|
||||||
</folding>
|
</folding>
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
|
@ -64,8 +65,8 @@
|
||||||
<file pinned="false" current-in-tab="false">
|
<file pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/lib/src/webview_options.dart">
|
<entry file="file://$PROJECT_DIR$/lib/src/webview_options.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="314">
|
<state relative-caret-position="234">
|
||||||
<caret line="562" column="36" selection-start-line="562" selection-start-column="12" selection-end-line="562" selection-end-column="36" />
|
<caret line="507" column="32" selection-start-line="507" selection-start-column="32" selection-end-line="507" selection-end-column="32" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#0#17#0" expanded="true" />
|
<element signature="e#0#17#0" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
|
@ -121,8 +122,8 @@
|
||||||
<file pinned="false" current-in-tab="true">
|
<file pinned="false" current-in-tab="true">
|
||||||
<entry file="file://$PROJECT_DIR$/CHANGELOG.md">
|
<entry file="file://$PROJECT_DIR$/CHANGELOG.md">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="210">
|
<state relative-caret-position="180">
|
||||||
<caret line="14" column="20" lean-forward="true" selection-start-line="14" selection-start-column="20" selection-end-line="14" selection-end-column="20" />
|
<caret line="12" column="34" selection-start-line="12" selection-start-column="34" selection-end-line="12" selection-end-column="34" />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
|
@ -239,8 +240,8 @@
|
||||||
<option value="$PROJECT_DIR$/example/lib/in_app_browser_example.screen.dart" />
|
<option value="$PROJECT_DIR$/example/lib/in_app_browser_example.screen.dart" />
|
||||||
<option value="$PROJECT_DIR$/README.md" />
|
<option value="$PROJECT_DIR$/README.md" />
|
||||||
<option value="$PROJECT_DIR$/lib/src/in_app_webview.dart" />
|
<option value="$PROJECT_DIR$/lib/src/in_app_webview.dart" />
|
||||||
<option value="$PROJECT_DIR$/lib/src/webview_options.dart" />
|
|
||||||
<option value="$PROJECT_DIR$/example/lib/main.dart" />
|
<option value="$PROJECT_DIR$/example/lib/main.dart" />
|
||||||
|
<option value="$PROJECT_DIR$/lib/src/webview_options.dart" />
|
||||||
<option value="$PROJECT_DIR$/CHANGELOG.md" />
|
<option value="$PROJECT_DIR$/CHANGELOG.md" />
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
|
@ -889,31 +890,30 @@
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/example/lib/main.dart">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="112">
|
|
||||||
<caret line="169" selection-start-line="169" selection-end-line="182" selection-end-column="4" />
|
|
||||||
<folding>
|
|
||||||
<element signature="e#0#12717#0" expanded="true" />
|
|
||||||
<element signature="e#1907#1927#0" expanded="true" />
|
|
||||||
</folding>
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/lib/src/webview_options.dart">
|
<entry file="file://$PROJECT_DIR$/lib/src/webview_options.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="314">
|
<state relative-caret-position="234">
|
||||||
<caret line="562" column="36" selection-start-line="562" selection-start-column="12" selection-end-line="562" selection-end-column="36" />
|
<caret line="507" column="32" selection-start-line="507" selection-start-column="32" selection-end-line="507" selection-end-column="32" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#0#17#0" expanded="true" />
|
<element signature="e#0#17#0" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/example/lib/main.dart">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="509">
|
||||||
|
<caret line="78" column="1" selection-start-line="78" selection-start-column="1" selection-end-line="78" selection-end-column="1" />
|
||||||
|
<folding>
|
||||||
|
<element signature="e#0#20#0" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/CHANGELOG.md">
|
<entry file="file://$PROJECT_DIR$/CHANGELOG.md">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="210">
|
<state relative-caret-position="180">
|
||||||
<caret line="14" column="20" lean-forward="true" selection-start-line="14" selection-start-column="20" selection-end-line="14" selection-end-column="20" />
|
<caret line="12" column="34" selection-start-line="12" selection-start-column="34" selection-end-line="12" selection-end-column="34" />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
- Updated default value for `domStorageEnabled` option to `true` for Android
|
- Updated default value for `domStorageEnabled` option to `true` for Android
|
||||||
- Fix for Android `InAppBrowser` for some controller methods not exposed.
|
- Fix for Android `InAppBrowser` for some controller methods not exposed.
|
||||||
- Merge "Fixes null error when calling getOptions for InAppBrowser class" [#214](https://github.com/pichillilorenzo/flutter_inappwebview/pull/214) (thanks to [panndoraBoo](https://github.com/panndoraBoo))
|
- Merge "Fixes null error when calling getOptions for InAppBrowser class" [#214](https://github.com/pichillilorenzo/flutter_inappwebview/pull/214) (thanks to [panndoraBoo](https://github.com/panndoraBoo))
|
||||||
- Added `dropDownWorkaroudEnabled` webview option for Android to enable a temporary workaround for html dropdowns (issue [#182](https://github.com/pichillilorenzo/flutter_inappwebview/issues/182))
|
- Added `dropDownWorkaroundEnabled` webview option for Android to enable a temporary workaround for html dropdowns (issue [#182](https://github.com/pichillilorenzo/flutter_inappwebview/issues/182))
|
||||||
|
|
||||||
### BREAKING CHANGES
|
### BREAKING CHANGES
|
||||||
|
|
||||||
|
|
|
@ -226,7 +226,7 @@ public class InAppWebViewClient extends WebViewClient {
|
||||||
|
|
||||||
String js = InAppWebView.platformReadyJS.replaceAll("[\r\n]+", "");
|
String js = InAppWebView.platformReadyJS.replaceAll("[\r\n]+", "");
|
||||||
|
|
||||||
if (webView.options.dropDownWorkaroudEnabled) {
|
if (webView.options.dropDownWorkaroundEnabled) {
|
||||||
js += InAppWebView.dropDownWorkaroundJS.replaceAll("[\r\n]+", "");
|
js += InAppWebView.dropDownWorkaroundJS.replaceAll("[\r\n]+", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,7 @@ public class InAppWebViewOptions extends Options {
|
||||||
public Boolean hardwareAcceleration = true;
|
public Boolean hardwareAcceleration = true;
|
||||||
public Boolean supportMultipleWindows = false;
|
public Boolean supportMultipleWindows = false;
|
||||||
public String regexToCancelSubFramesLoading;
|
public String regexToCancelSubFramesLoading;
|
||||||
public Boolean dropDownWorkaroudEnabled = false;
|
public Boolean dropDownWorkaroundEnabled = false;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object onParse(Map.Entry<String, Object> pair) {
|
public Object onParse(Map.Entry<String, Object> pair) {
|
||||||
|
|
|
@ -413,7 +413,7 @@ class AndroidInAppWebViewOptions
|
||||||
///The default value is `false`.
|
///The default value is `false`.
|
||||||
///
|
///
|
||||||
///**NOTE**: available on Android 19+.
|
///**NOTE**: available on Android 19+.
|
||||||
bool dropDownWorkaroudEnabled;
|
bool dropDownWorkaroundEnabled;
|
||||||
|
|
||||||
AndroidInAppWebViewOptions(
|
AndroidInAppWebViewOptions(
|
||||||
{this.textZoom = 100,
|
{this.textZoom = 100,
|
||||||
|
@ -458,7 +458,7 @@ class AndroidInAppWebViewOptions
|
||||||
this.initialScale = 0,
|
this.initialScale = 0,
|
||||||
this.supportMultipleWindows = false,
|
this.supportMultipleWindows = false,
|
||||||
this.regexToCancelSubFramesLoading,
|
this.regexToCancelSubFramesLoading,
|
||||||
this.dropDownWorkaroudEnabled = false});
|
this.dropDownWorkaroundEnabled = false});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Map<String, dynamic> toMap() {
|
Map<String, dynamic> toMap() {
|
||||||
|
@ -505,7 +505,7 @@ class AndroidInAppWebViewOptions
|
||||||
"hardwareAcceleration": hardwareAcceleration,
|
"hardwareAcceleration": hardwareAcceleration,
|
||||||
"supportMultipleWindows": supportMultipleWindows,
|
"supportMultipleWindows": supportMultipleWindows,
|
||||||
"regexToCancelSubFramesLoading": regexToCancelSubFramesLoading,
|
"regexToCancelSubFramesLoading": regexToCancelSubFramesLoading,
|
||||||
"dropDownWorkaroudEnabled": dropDownWorkaroudEnabled
|
"dropDownWorkaroundEnabled": dropDownWorkaroundEnabled
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -560,7 +560,7 @@ class AndroidInAppWebViewOptions
|
||||||
options.hardwareAcceleration = map["hardwareAcceleration"];
|
options.hardwareAcceleration = map["hardwareAcceleration"];
|
||||||
options.supportMultipleWindows = map["supportMultipleWindows"];
|
options.supportMultipleWindows = map["supportMultipleWindows"];
|
||||||
options.regexToCancelSubFramesLoading = map["regexToCancelSubFramesLoading"];
|
options.regexToCancelSubFramesLoading = map["regexToCancelSubFramesLoading"];
|
||||||
options.dropDownWorkaroudEnabled = map["dropDownWorkaroudEnabled"];
|
options.dropDownWorkaroundEnabled = map["dropDownWorkaroundEnabled"];
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue