1050 Commits

Author SHA1 Message Date
Matthew Lloyd
89d2e0b56b Adds a transparentBackground option for iOS and Android
This is useful to prevent a brief white flash on initialization
for apps that use a dark theme.
2019-04-27 04:00:24 -04:00
Matthew Lloyd
98316371d8 The 'open' method requires an options dictionary
Otherwise, SwiftFlutterPlugin.swift throws an exception on line 285
when the InAppBrowser.openWithSystemBrowser(url) method is called:

  let options = (arguments["options"] as? [String: Any])!
2019-04-27 03:57:19 -04:00
Matthew Lloyd
0dfbfe9a35 iOS: Call setNeedsLayout() in scrollViewDidScroll()
Otherwise, the web view scrolls in blank white space which
doesn't get painted until the scroll gesture is finished,
because the WKWebView hasn't rendered that part of the
viewport to its offscreen buffer.
2019-04-26 18:02:30 -04:00
pichillilorenzo
0e1639bb70 merge #85 2019-04-26 21:35:50 +02:00
Lorenzo Pichilli
b163e48c3d
Merge pull request #85 from matthewlloyd/master
Add null checks around calls to InAppWebView callbacks
2019-04-26 21:27:33 +02:00
Matthew Lloyd
11da457d51 Add null checks around calls to InAppWebView callbacks and InAppBrowser methods
This prevents a crash I've been seeing as of v1.1.2 (for the onScrollChanged callback)
and should also prevent any other similar possible crashes.

Also, suppress an unused_field analyzer warning for InAppWebViewController._id.
2019-04-26 15:12:57 -04:00
pichillilorenzo
36fc04c285 fix #74, merge #81 #83, fix javascript ...args parameter of window.flutter_inappbrowser.callHandler() 2019-04-26 16:55:05 +02:00
Lorenzo Pichilli
b2c2f326b5
Merge pull request #83 from cinos1/patch-1
bug fix for android build
2019-04-26 15:17:10 +02:00
Lorenzo Pichilli
43f16d0a2b
Merge pull request #81 from YouCii/master
Enable setTextZoom function of Android-WebViewSetting
2019-04-26 15:16:48 +02:00
cinos
e16512996e
bug fix for android build
Android dependency 'androidx.core:core' has different version for the compile (1.0.0) and runtime (1.0.1) classpath
2019-04-25 17:31:04 +08:00
YouCii
2040abf5cd
Update README.md
Enable setTextZoom function of Android-WebViewSetting
2019-04-19 15:42:47 +08:00
YouCii
944caa9d4f 1. Enable setTextZoom function of Android-WebViewSetting 2019-04-19 15:36:12 +08:00
pichillilorenzo
dec7e07979 updated README.md 2019-03-15 03:30:57 +01:00
pichillilorenzo
219f079a9e Fixed README.md and method documentation 2019-03-15 03:25:46 +01:00
pichillilorenzo
23194ac67a updated CHANGELOG.md 2019-03-15 03:03:15 +01:00
pichillilorenzo
db284c7aca updated CHANGELOG.md 2019-03-15 03:02:38 +01:00
pichillilorenzo
177887a817 updated CHANGELOG.md 2019-03-15 03:01:47 +01:00
pichillilorenzo
660292f504 updated documentation for addJavaScriptHandler method, updated README.md, updated inline webview example 2019-03-15 02:55:50 +01:00
pichillilorenzo
0c49b45b01 moved json serialization for JavaScriptBridgeInterface to dart side, fix #64, fix #46 2019-03-14 21:59:13 +01:00
pichillilorenzo
a480ebf6a1 added return value for JavaScriptHandlerCallback, added flutterInAppBrowserPlatformReady event for javascript, breaking change: javaScriptHandlersMap contains only one callback 2019-03-14 05:43:07 +01:00
pichillilorenzo
f3f0876f28 fix #56, some code cleanup 2019-03-12 02:14:30 +01:00
pichillilorenzo
8db2a6b22a added support for AndroidX, version 1.0.0 2019-03-11 15:52:09 +01:00
Lorenzo Pichilli
669a51fefc
Merge pull request #55 from juicycleff/master
upgrade to androidX
2019-03-11 14:26:45 +01:00
Rex Momoh
35d7fe850a upgrade to androidX 2019-03-11 08:14:26 +01:00
pichillilorenzo
ca87523049 updated README.md file 2019-03-11 04:24:41 +01:00
pichillilorenzo
1aaca5dd00 updated README.md file 2019-03-11 04:20:54 +01:00
pichillilorenzo
a1e3011087 updated CHANGELOG.md 2019-03-11 03:46:36 +01:00
pichillilorenzo
1dfa6323c6 added support for iOS inline native WebView integrated in the flutter widget tree (#18, #45), fix #54 #38 #26 #32 #33 #29 #15 2019-03-11 03:34:58 +01:00
Lorenzo Pichilli
2b600fbb6c
Merge pull request #40 from Sense545/master
Fixed bug where passing null to expiresDate failed
2019-03-10 21:54:08 +01:00
Sense545
595625c853 Fixed bug where passing null to expiresDate failed 2019-01-25 17:55:18 +01:00
pichillilorenzo
c34cdf55d5 added test.dart 2018-12-20 09:25:31 +01:00
Lorenzo Pichilli
3b538104f5
Merge pull request #27 from igtm/encodeurl
[fix] encode resourceURL
2018-12-20 09:20:16 +01:00
Lorenzo Pichilli
a2b7e48221
Merge pull request #24 from huzhiren/master
Fixed error: Double value cannot be converted to Int because the result would be greater than Int.max in 32-bit devices
2018-12-20 09:18:25 +01:00
Lorenzo Pichilli
30d930991e
Merge pull request #20 from marquesinijatinha/master
fixing a problem in safari webview and adding tabs to examples
2018-12-20 09:15:00 +01:00
Iguchi Tomokatsu
7dc29355b4 [fix] encode resourceURL 2018-12-18 16:24:24 +09:00
Ryan
2812726655
Update SwiftFlutterPlugin.swift 2018-12-12 07:10:53 +13:00
Ryan
54faefe23f
Update InAppWebView.swift 2018-12-12 07:10:16 +13:00
Ryan
312655329d
Update InAppBrowserWebViewController.swift 2018-12-12 07:09:15 +13:00
Joao Paulo Marquesini
a9bcbe1f86 fixing a problem in safari webview and adding tabs to examples 2018-12-07 17:52:24 -02:00
pichillilorenzo
8b5a634715 working on iOS inline webview implementation 2018-11-27 17:34:44 +01:00
pichillilorenzo
a5a784dd05 init iOS inline webview implementation 2018-11-13 12:02:20 +01:00
pichillilorenzo
f02791f478 v0.5.51 2018-11-07 01:40:16 +01:00
pichillilorenzo
ce09f7e7df updated README.md 2018-11-07 01:15:20 +01:00
pichillilorenzo
b043b435d2 v0.5.5 2018-11-07 01:11:27 +01:00
pichillilorenzo
53e9ecbfa2 v0.5.4, updated docs and README.md 2018-10-30 23:59:17 +01:00
pichillilorenzo
305c726274 added WebHistory and WebHistoryItem class, added getCopyBackForwardList, goBackOrForward, canGoBackOrForward and goTo methods for InAppWebView and InAppBrowser, updated docs 2018-10-30 01:39:07 +01:00
pichillilorenzo
ab7b1b68ad added and class, added method for and 2018-10-29 22:02:59 +01:00
pichillilorenzo
456be7d7f7 updated example 2018-10-28 01:16:29 +02:00
pichillilorenzo
098adfc1dd updated README.md, v0.5.3 2018-10-28 01:16:03 +02:00
pichillilorenzo
e2b091b22c updated docs 2018-10-27 21:11:10 +02:00