Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
Flutter Inappwebview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
Flutter Inappwebview
Commits
ee4d0162
Commit
ee4d0162
authored
Dec 11, 2019
by
Lorenzo Pichilli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated dropDownWorkaround
parent
a7e0f33b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
35 deletions
+41
-35
.idea/workspace.xml
.idea/workspace.xml
+36
-33
android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java
...renzo/flutter_inappwebview/InAppWebView/InAppWebView.java
+5
-2
No files found.
.idea/workspace.xml
View file @
ee4d0162
...
...
@@ -15,11 +15,7 @@
</component>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"9b41f7a2-a71e-4923-91fb-249d7815b3e7"
name=
"Default"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/flutter_inappwebview/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/flutter_inappwebview/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/flutter_inappwebview/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/flutter_inappwebview/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/flutter_inappwebview/example/lib/main.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/flutter_inappwebview/example/lib/main.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/lib/main.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/lib/main.dart"
afterDir=
"false"
/>
</list>
<ignored
path=
"$PROJECT_DIR$/.dart_tool/"
/>
...
...
@@ -43,10 +39,9 @@
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/example/lib/main.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
316
"
>
<caret
line=
"
130"
column=
"3"
selection-start-line=
"130"
selection-start-column=
"3"
selection-end-line=
"130"
selection-end-column=
"3
"
/>
<state
relative-caret-position=
"
15
"
>
<caret
line=
"
24"
column=
"31"
selection-end-line=
"366"
selection-end-column=
"1
"
/>
<folding>
<element
signature=
"e#0#12718#0"
expanded=
"true"
/>
<element
signature=
"e#1907#1927#0"
expanded=
"true"
/>
</folding>
</state>
...
...
@@ -68,8 +63,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/lib/src/webview_options.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
7560
"
>
<caret
line=
"
507"
column=
"32"
selection-start-line=
"507"
selection-start-column=
"32"
selection-end-line=
"507"
selection-end-column=
"32
"
/>
<state
relative-caret-position=
"
208
"
>
<caret
line=
"
414"
column=
"40"
lean-forward=
"true"
selection-start-line=
"410"
selection-start-column=
"5"
selection-end-line=
"414"
selection-end-column=
"40
"
/>
<folding>
<element
signature=
"e#0#17#0"
expanded=
"true"
/>
</folding>
...
...
@@ -113,8 +108,12 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/README.md"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"6315"
>
<caret
line=
"421"
column=
"86"
selection-start-line=
"421"
selection-start-column=
"86"
selection-end-line=
"421"
selection-end-column=
"86"
/>
<state
relative-caret-position=
"216"
>
<caret
line=
"412"
column=
"3"
selection-start-line=
"412"
selection-start-column=
"3"
selection-end-line=
"412"
selection-end-column=
"21"
/>
<folding>
<element
signature=
"e#0#39#0"
expanded=
"true"
/>
<element
signature=
"e#0#39#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
...
...
@@ -140,7 +139,6 @@
</component>
<component
name=
"FindInProjectRecents"
>
<findStrings>
<find>
_channel
</find>
<find>
default
</find>
<find>
_staticChannel
</find>
<find>
defa
</find>
...
...
@@ -170,6 +168,7 @@
<find>
ThreadedInputConnecti
</find>
<find>
InputAwareWebView
</find>
<find>
\n
</find>
<find>
dropDownWorkaroundEnabled
</find>
</findStrings>
<replaceStrings>
<replace>
activity.getPreferences(0)
</replace>
...
...
@@ -238,10 +237,10 @@
<option
value=
"$PROJECT_DIR$/lib/src/in_app_browser.dart"
/>
<option
value=
"$PROJECT_DIR$/example/test_driver/in_app_webview_should_override_url_loading_test.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/in_app_browser_example.screen.dart"
/>
<option
value=
"$PROJECT_DIR$/README.md"
/>
<option
value=
"$PROJECT_DIR$/lib/src/in_app_webview.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/src/webview_options.dart"
/>
<option
value=
"$PROJECT_DIR$/CHANGELOG.md"
/>
<option
value=
"$PROJECT_DIR$/README.md"
/>
<option
value=
"$PROJECT_DIR$/example/lib/main.dart"
/>
</list>
</option>
...
...
@@ -470,6 +469,7 @@
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"0"
y=
"23"
width=
"1920"
height=
"1057"
extended-state=
"6"
/>
<editor
active=
"true"
/>
<layout>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"0"
sideWeight=
"0.6177474"
visible=
"true"
weight=
"0.1368477"
/>
<window_info
id=
"Structure"
order=
"1"
sideWeight=
"0.38225257"
side_tool=
"true"
weight=
"0.2087327"
/>
...
...
@@ -840,16 +840,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/src/webview_options.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"7560"
>
<caret
line=
"507"
column=
"32"
selection-start-line=
"507"
selection-start-column=
"32"
selection-end-line=
"507"
selection-end-column=
"32"
/>
<folding>
<element
signature=
"e#0#17#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/src/types.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"30285"
>
...
...
@@ -870,13 +860,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/README.md"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"6315"
>
<caret
line=
"421"
column=
"86"
selection-start-line=
"421"
selection-start-column=
"86"
selection-end-line=
"421"
selection-end-column=
"86"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/CHANGELOG.md"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"180"
>
...
...
@@ -891,12 +874,32 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/src/webview_options.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"208"
>
<caret
line=
"414"
column=
"40"
lean-forward=
"true"
selection-start-line=
"410"
selection-start-column=
"5"
selection-end-line=
"414"
selection-end-column=
"40"
/>
<folding>
<element
signature=
"e#0#17#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/README.md"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"216"
>
<caret
line=
"412"
column=
"3"
selection-start-line=
"412"
selection-start-column=
"3"
selection-end-line=
"412"
selection-end-column=
"21"
/>
<folding>
<element
signature=
"e#0#39#0"
expanded=
"true"
/>
<element
signature=
"e#0#39#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/example/lib/main.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
316
"
>
<caret
line=
"
130"
column=
"3"
selection-start-line=
"130"
selection-start-column=
"3"
selection-end-line=
"130"
selection-end-column=
"3
"
/>
<state
relative-caret-position=
"
15
"
>
<caret
line=
"
24"
column=
"31"
selection-end-line=
"366"
selection-end-column=
"1
"
/>
<folding>
<element
signature=
"e#0#12718#0"
expanded=
"true"
/>
<element
signature=
"e#1907#1927#0"
expanded=
"true"
/>
</folding>
</state>
...
...
android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java
View file @
ee4d0162
...
...
@@ -877,6 +877,10 @@ final public class InAppWebView extends InputAwareWebView {
" var clickEventListener = function(event) {"
+
" var self = this;"
+
" event.preventDefault();"
+
" var isDisabled = !!this.flutterInAppWebViewSelect.disabled;"
+
" if (isDisabled) {"
+
" return;"
+
" }"
+
" this.flutterInAppWebViewSelect.focus();"
+
" var options = [];"
+
" var optionElements = this.flutterInAppWebViewSelect.querySelectorAll("
+
...
...
@@ -890,8 +894,7 @@ final public class InAppWebView extends InputAwareWebView {
" });"
+
" }"
+
" var isMultiple = !!this.flutterInAppWebViewSelect.multiple;"
+
" window.flutter_inappwebview"
+
" .callHandler("
+
" window."
+
JavaScriptBridgeInterface
.
name
+
".callHandler("
+
" \"flutterInAppWebViewDropDownWorkaround\","
+
" getIndexSelectValues(this.flutterInAppWebViewSelect),"
+
" isMultiple,"
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment