Update parsed uri into string to avoid wrong type match.
This commit is contained in:
parent
b2ad0a2944
commit
86b05967e7
|
@ -383,7 +383,7 @@ class _InAppWebViewState extends State<InAppWebView> {
|
|||
gestureRecognizers: widget.gestureRecognizers,
|
||||
layoutDirection: TextDirection.rtl,
|
||||
creationParams: <String, dynamic>{
|
||||
'initialUrl': Uri.parse(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<InAppWebView> {
|
|||
onPlatformViewCreated: _onPlatformViewCreated,
|
||||
gestureRecognizers: widget.gestureRecognizers,
|
||||
creationParams: <String, dynamic>{
|
||||
'initialUrl': Uri.parse(widget.initialUrl),
|
||||
'initialUrl': '${Uri.parse(widget.initialUrl)}',
|
||||
'initialFile': widget.initialFile,
|
||||
'initialData': widget.initialData?.toMap(),
|
||||
'initialHeaders': widget.initialHeaders,
|
||||
|
|
Loading…
Reference in New Issue