fix #213
This commit is contained in:
parent
0e30767c15
commit
7d9f9f56a4
|
@ -20,6 +20,7 @@
|
|||
- 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 "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
|
||||
|
||||
|
|
|
@ -106,6 +106,7 @@ public class InAppBrowserManager: NSObject, FlutterPlugin {
|
|||
webViewController.webViewOptions = webViewOptions
|
||||
webViewController.isHidden = browserOptions.hidden
|
||||
webViewController.previousStatusBarStyle = previousStatusBarStyle
|
||||
webViewController.prepareBeforeViewWillAppear()
|
||||
return webViewController
|
||||
}
|
||||
|
||||
|
|
|
@ -431,7 +431,9 @@ public class InAppBrowserWebViewController: UIViewController, FlutterPlugin, UIS
|
|||
if browserOptions?.closeButtonColor != "" {
|
||||
closeButton.tintColor = color(fromHexString: (browserOptions?.closeButtonColor)!)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public func prepareBeforeViewWillAppear() {
|
||||
self.modalPresentationStyle = UIModalPresentationStyle(rawValue: (browserOptions?.presentationStyle)!)!
|
||||
self.modalTransitionStyle = UIModalTransitionStyle(rawValue: (browserOptions?.transitionStyle)!)!
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue