Parse url before create platform view.
This commit is contained in:
parent
1f3318bed8
commit
b2ad0a2944
|
@ -383,7 +383,7 @@ class _InAppWebViewState extends State<InAppWebView> {
|
||||||
gestureRecognizers: widget.gestureRecognizers,
|
gestureRecognizers: widget.gestureRecognizers,
|
||||||
layoutDirection: TextDirection.rtl,
|
layoutDirection: TextDirection.rtl,
|
||||||
creationParams: <String, dynamic>{
|
creationParams: <String, dynamic>{
|
||||||
'initialUrl': widget.initialUrl,
|
'initialUrl': Uri.parse(widget.initialUrl),
|
||||||
'initialFile': widget.initialFile,
|
'initialFile': widget.initialFile,
|
||||||
'initialData': widget.initialData?.toMap(),
|
'initialData': widget.initialData?.toMap(),
|
||||||
'initialHeaders': widget.initialHeaders,
|
'initialHeaders': widget.initialHeaders,
|
||||||
|
@ -416,7 +416,7 @@ class _InAppWebViewState extends State<InAppWebView> {
|
||||||
onPlatformViewCreated: _onPlatformViewCreated,
|
onPlatformViewCreated: _onPlatformViewCreated,
|
||||||
gestureRecognizers: widget.gestureRecognizers,
|
gestureRecognizers: widget.gestureRecognizers,
|
||||||
creationParams: <String, dynamic>{
|
creationParams: <String, dynamic>{
|
||||||
'initialUrl': widget.initialUrl,
|
'initialUrl': Uri.parse(widget.initialUrl),
|
||||||
'initialFile': widget.initialFile,
|
'initialFile': widget.initialFile,
|
||||||
'initialData': widget.initialData?.toMap(),
|
'initialData': widget.initialData?.toMap(),
|
||||||
'initialHeaders': widget.initialHeaders,
|
'initialHeaders': widget.initialHeaders,
|
||||||
|
|
Loading…
Reference in New Issue