Commit 7d9f9f56 authored by Lorenzo Pichilli's avatar Lorenzo Pichilli

fix #213

parent 0e30767c
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
- Fix for Android and iOS `InAppBrowser` for some controller methods not exposed. - Fix for Android and iOS `InAppBrowser` for some controller methods not exposed.
- Fixed "App Crashes after clicking on dropdown (Using inappwebview)" [#182](https://github.com/pichillilorenzo/flutter_inappwebview/issues/182) - Fixed "App Crashes after clicking on dropdown (Using inappwebview)" [#182](https://github.com/pichillilorenzo/flutter_inappwebview/issues/182)
- Fixed "webview can not be released when in ios" [#225](https://github.com/pichillilorenzo/flutter_inappwebview/issues/225). Now the iOS WebView is released from memory when it is disposed from Flutter. - Fixed "webview can not be released when in ios" [#225](https://github.com/pichillilorenzo/flutter_inappwebview/issues/225). Now the iOS WebView is released from memory when it is disposed from Flutter.
- Fixed "Setting of presentationStyle not working on iOS" [#213](https://github.com/pichillilorenzo/flutter_inappwebview/issues/213)
### BREAKING CHANGES ### BREAKING CHANGES
......
...@@ -106,6 +106,7 @@ public class InAppBrowserManager: NSObject, FlutterPlugin { ...@@ -106,6 +106,7 @@ public class InAppBrowserManager: NSObject, FlutterPlugin {
webViewController.webViewOptions = webViewOptions webViewController.webViewOptions = webViewOptions
webViewController.isHidden = browserOptions.hidden webViewController.isHidden = browserOptions.hidden
webViewController.previousStatusBarStyle = previousStatusBarStyle webViewController.previousStatusBarStyle = previousStatusBarStyle
webViewController.prepareBeforeViewWillAppear()
return webViewController return webViewController
} }
......
...@@ -431,7 +431,9 @@ public class InAppBrowserWebViewController: UIViewController, FlutterPlugin, UIS ...@@ -431,7 +431,9 @@ public class InAppBrowserWebViewController: UIViewController, FlutterPlugin, UIS
if browserOptions?.closeButtonColor != "" { if browserOptions?.closeButtonColor != "" {
closeButton.tintColor = color(fromHexString: (browserOptions?.closeButtonColor)!) closeButton.tintColor = color(fromHexString: (browserOptions?.closeButtonColor)!)
} }
}
public func prepareBeforeViewWillAppear() {
self.modalPresentationStyle = UIModalPresentationStyle(rawValue: (browserOptions?.presentationStyle)!)! self.modalPresentationStyle = UIModalPresentationStyle(rawValue: (browserOptions?.presentationStyle)!)!
self.modalTransitionStyle = UIModalTransitionStyle(rawValue: (browserOptions?.transitionStyle)!)! self.modalTransitionStyle = UIModalTransitionStyle(rawValue: (browserOptions?.transitionStyle)!)!
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment