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
3869f893
Commit
3869f893
authored
Nov 16, 2019
by
Lorenzo Pichilli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed docs
parent
a6590903
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
42 deletions
+10
-42
.idea/workspace.xml
.idea/workspace.xml
+7
-39
lib/src/in_app_webview.dart
lib/src/in_app_webview.dart
+3
-3
No files found.
.idea/workspace.xml
View file @
3869f893
...
...
@@ -15,39 +15,7 @@
</component>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"9b41f7a2-a71e-4923-91fb-249d7815b3e7"
name=
"Default"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/example/test_assets/certificate.pfx"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/example/test_assets/css/style.css"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/example/test_assets/favicon.ico"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/example/test_assets/images/flutter-logo.svg"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/example/test_assets/in_app_webview_ajax_test.html"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/example/test_assets/in_app_webview_initial_file_test.html"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/example/test_assets/in_app_webview_javascript_handler_test.html"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/example/test_assets/in_app_webview_on_load_resource_test.html"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/example/test_assets/index.html"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/example/test_assets/page-1.html"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/example/test_assets/page-2.html"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/CHANGELOG.md"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/CHANGELOG.md"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebView.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebView.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebViewClient.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebViewClient.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/JavaScriptBridgeInterface.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/JavaScriptBridgeInterface.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/assets/index.html"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/assets/index.html"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/lib/inline_example.screen.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/lib/inline_example.screen.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/pubspec.yaml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/pubspec.yaml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/flutter_inappbrowser.iml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/flutter_inappbrowser.iml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/flutter_inappbrowser_tests/lib/custom_widget_test.dart"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/flutter_inappbrowser_tests/lib/in_app_webview_initial_file_test.dart"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/flutter_inappbrowser_tests/lib/in_app_webview_initial_url_test.dart"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/flutter_inappbrowser_tests/lib/in_app_webview_on_load_resource_test.dart"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/ios/Classes/CustomeSchemeHandler.swift"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/ios/Classes/CustomeSchemeHandler.swift"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/ios/Classes/InAppWebView.swift"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/ios/Classes/InAppWebView.swift"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/src/content_blocker.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/lib/src/content_blocker.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/src/in_app_browser.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/lib/src/in_app_browser.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/src/in_app_webview.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/lib/src/in_app_webview.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/src/types.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/lib/src/types.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/nodejs_server_test_auth_basic_and_ssl/index.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/nodejs_server_test_auth_basic_and_ssl/index.js"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tests/flutter_in_app_browser_test/lib/main_test.dart"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tests/flutter_in_app_browser_test/lib/util_test.dart"
beforeDir=
"false"
/>
</list>
<ignored
path=
"$PROJECT_DIR$/.dart_tool/"
/>
<ignored
path=
"$PROJECT_DIR$/.idea/"
/>
...
...
@@ -70,8 +38,8 @@
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/lib/src/in_app_webview.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
237
"
>
<caret
line=
"1
58"
column=
"131"
selection-start-line=
"158"
selection-start-column=
"131"
selection-end-line=
"158"
selection-end-column=
"131
"
/>
<state
relative-caret-position=
"
483
"
>
<caret
line=
"1
91"
column=
"89"
selection-start-line=
"191"
selection-start-column=
"89"
selection-end-line=
"191"
selection-end-column=
"89
"
/>
<folding>
<element
signature=
"e#0#17#0"
expanded=
"true"
/>
</folding>
...
...
@@ -419,7 +387,7 @@
<frame
x=
"0"
y=
"23"
width=
"1920"
height=
"1057"
extended-state=
"6"
/>
<editor
active=
"true"
/>
<layout>
<window_info
active=
"true"
content_ui=
"combo"
id=
"Project"
order=
"0"
sideWeight=
"0.6529745"
visible=
"true"
weight=
"0.21991481"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"0"
sideWeight=
"0.6529745"
visible=
"true"
weight=
"0.21991481"
/>
<window_info
id=
"Structure"
order=
"1"
sideWeight=
"0.34702548"
side_tool=
"true"
weight=
"0.15867944"
/>
<window_info
id=
"Designer"
order=
"2"
/>
<window_info
id=
"Build Variants"
order=
"3"
side_tool=
"true"
/>
...
...
@@ -438,8 +406,8 @@
<window_info
anchor=
"bottom"
id=
"Android Profiler"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"8"
sideWeight=
"0.50692225"
side_tool=
"true"
weight=
"0.38445595"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"9"
weight=
"0.32953367"
/>
<window_info
a
nchor=
"bottom"
id=
"Terminal"
order=
"10"
sideWeight=
"0.49533224
"
weight=
"0.3388601"
/>
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"11"
visible=
"true"
weight=
"0.3896373"
/>
<window_info
a
ctive=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"10"
sideWeight=
"0.49533224"
visible=
"true
"
weight=
"0.3388601"
/>
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"11"
weight=
"0.3896373"
/>
<window_info
anchor=
"bottom"
id=
"Dependency Viewer"
order=
"12"
weight=
"0.32800853"
/>
<window_info
anchor=
"bottom"
id=
"Logcat"
order=
"13"
weight=
"0.32953367"
/>
<window_info
anchor=
"bottom"
id=
"Dart Analysis"
order=
"14"
sideWeight=
"0.4968051"
weight=
"0.3253886"
/>
...
...
@@ -695,8 +663,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/src/in_app_webview.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
237
"
>
<caret
line=
"1
58"
column=
"131"
selection-start-line=
"158"
selection-start-column=
"131"
selection-end-line=
"158"
selection-end-column=
"131
"
/>
<state
relative-caret-position=
"
483
"
>
<caret
line=
"1
91"
column=
"89"
selection-start-line=
"191"
selection-start-column=
"89"
selection-end-line=
"191"
selection-end-column=
"89
"
/>
<folding>
<element
signature=
"e#0#17#0"
expanded=
"true"
/>
</folding>
...
...
lib/src/in_app_webview.dart
View file @
3869f893
...
...
@@ -156,7 +156,7 @@ class InAppWebView extends StatefulWidget {
///Also, unlike iOS that has [WKUserScript](https://developer.apple.com/documentation/webkit/wkuserscript) that
///can inject javascript code right after the document element is created but before any other content is loaded, in Android the javascript code
///used to intercept ajax requests is loaded as soon as possible so it won't be instantaneous as iOS but just after some milliseconds (< ~100ms).
///Inside the `window.addEventListener("flutterInAppBrowserPlatformReady")` event, the
fetch
requests will be intercept for sure.
///Inside the `window.addEventListener("flutterInAppBrowserPlatformReady")` event, the
ajax
requests will be intercept for sure.
final
Future
<
AjaxRequest
>
Function
(
InAppWebViewController
controller
,
AjaxRequest
ajaxRequest
)
shouldInterceptAjaxRequest
;
///Event fired whenever the `readyState` attribute of an `XMLHttpRequest` changes.
...
...
@@ -168,7 +168,7 @@ class InAppWebView extends StatefulWidget {
///Also, unlike iOS that has [WKUserScript](https://developer.apple.com/documentation/webkit/wkuserscript) that
///can inject javascript code right after the document element is created but before any other content is loaded, in Android the javascript code
///used to intercept ajax requests is loaded as soon as possible so it won't be instantaneous as iOS but just after some milliseconds (< ~100ms).
///Inside the `window.addEventListener("flutterInAppBrowserPlatformReady")` event, the
fetch
requests will be intercept for sure.
///Inside the `window.addEventListener("flutterInAppBrowserPlatformReady")` event, the
ajax
requests will be intercept for sure.
final
Future
<
AjaxRequestAction
>
Function
(
InAppWebViewController
controller
,
AjaxRequest
ajaxRequest
)
onAjaxReadyStateChange
;
///Event fired as an `XMLHttpRequest` progress.
...
...
@@ -180,7 +180,7 @@ class InAppWebView extends StatefulWidget {
///Also, unlike iOS that has [WKUserScript](https://developer.apple.com/documentation/webkit/wkuserscript) that
///can inject javascript code right after the document element is created but before any other content is loaded, in Android the javascript code
///used to intercept ajax requests is loaded as soon as possible so it won't be instantaneous as iOS but just after some milliseconds (< ~100ms).
///Inside the `window.addEventListener("flutterInAppBrowserPlatformReady")` event, the
fetch
requests will be intercept for sure.
///Inside the `window.addEventListener("flutterInAppBrowserPlatformReady")` event, the
ajax
requests will be intercept for sure.
final
Future
<
AjaxRequestAction
>
Function
(
InAppWebViewController
controller
,
AjaxRequest
ajaxRequest
)
onAjaxProgress
;
///Event fired when an request is sent to a server through [Fetch API](https://developer.mozilla.org/it/docs/Web/API/Fetch_API).
...
...
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