From 98316371d8bfb4050fcd3378269cb75c4b20f05f Mon Sep 17 00:00:00 2001 From: Matthew Lloyd Date: Sat, 27 Apr 2019 00:04:32 -0400 Subject: [PATCH] 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])! --- lib/flutter_inappbrowser.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/flutter_inappbrowser.dart b/lib/flutter_inappbrowser.dart index b03db32b..5f285bcd 100644 --- a/lib/flutter_inappbrowser.dart +++ b/lib/flutter_inappbrowser.dart @@ -294,6 +294,7 @@ class InAppBrowser { args.putIfAbsent('isData', () => false); args.putIfAbsent('openWithSystemBrowser', () => true); args.putIfAbsent('useChromeSafariBrowser', () => false); + args.putIfAbsent('options', () => {}); return await _ChannelManager.channel.invokeMethod('open', args); }