diff --git a/lib/src/in_app_webview.dart b/lib/src/in_app_webview.dart index 56e1a774..e47c1e09 100755 --- a/lib/src/in_app_webview.dart +++ b/lib/src/in_app_webview.dart @@ -383,7 +383,7 @@ class _InAppWebViewState extends State { gestureRecognizers: widget.gestureRecognizers, layoutDirection: TextDirection.rtl, creationParams: { - 'initialUrl': widget.initialUrl, + 'initialUrl': Uri.parse(widget.initialUrl), 'initialFile': widget.initialFile, 'initialData': widget.initialData?.toMap(), 'initialHeaders': widget.initialHeaders, @@ -416,7 +416,7 @@ class _InAppWebViewState extends State { onPlatformViewCreated: _onPlatformViewCreated, gestureRecognizers: widget.gestureRecognizers, creationParams: { - 'initialUrl': widget.initialUrl, + 'initialUrl': Uri.parse(widget.initialUrl), 'initialFile': widget.initialFile, 'initialData': widget.initialData?.toMap(), 'initialHeaders': widget.initialHeaders,