Merge pull request #1064 from RodXander/master
Fixed the unexpected behavior of InAppWebView and HeadlessInAppWebVie…
This commit is contained in:
commit
a34ea8026b
|
@ -140,9 +140,7 @@ class HeadlessInAppWebView implements WebView {
|
|||
args.putIfAbsent(
|
||||
'params',
|
||||
() => <String, dynamic>{
|
||||
'initialUrlRequest': (this.initialUrlRequest ??
|
||||
URLRequest(url: Uri.parse("about:blank")))
|
||||
.toMap(),
|
||||
'initialUrlRequest': this.initialUrlRequest?.toMap(),
|
||||
'initialFile': this.initialFile,
|
||||
'initialData': this.initialData?.toMap(),
|
||||
'initialOptions': this.initialOptions?.toMap() ?? {},
|
||||
|
|
|
@ -399,9 +399,7 @@ class _InAppWebViewState extends State<InAppWebView> {
|
|||
viewType: 'com.pichillilorenzo/flutter_inappwebview',
|
||||
layoutDirection: TextDirection.rtl,
|
||||
creationParams: <String, dynamic>{
|
||||
'initialUrlRequest': (widget.initialUrlRequest ??
|
||||
URLRequest(url: Uri.parse("about:blank")))
|
||||
.toMap(),
|
||||
'initialUrlRequest': widget.initialUrlRequest?.toMap(),
|
||||
'initialFile': widget.initialFile,
|
||||
'initialData': widget.initialData?.toMap(),
|
||||
'initialOptions': widget.initialOptions?.toMap() ?? {},
|
||||
|
@ -430,9 +428,7 @@ class _InAppWebViewState extends State<InAppWebView> {
|
|||
gestureRecognizers: widget.gestureRecognizers,
|
||||
layoutDirection: Directionality.maybeOf(context) ?? TextDirection.rtl,
|
||||
creationParams: <String, dynamic>{
|
||||
'initialUrlRequest': (widget.initialUrlRequest ??
|
||||
URLRequest(url: Uri.parse("about:blank")))
|
||||
.toMap(),
|
||||
'initialUrlRequest': widget.initialUrlRequest?.toMap(),
|
||||
'initialFile': widget.initialFile,
|
||||
'initialData': widget.initialData?.toMap(),
|
||||
'initialOptions': widget.initialOptions?.toMap() ?? {},
|
||||
|
@ -454,9 +450,7 @@ class _InAppWebViewState extends State<InAppWebView> {
|
|||
onPlatformViewCreated: _onPlatformViewCreated,
|
||||
gestureRecognizers: widget.gestureRecognizers,
|
||||
creationParams: <String, dynamic>{
|
||||
'initialUrlRequest': (widget.initialUrlRequest ??
|
||||
URLRequest(url: Uri.parse("about:blank")))
|
||||
.toMap(),
|
||||
'initialUrlRequest': widget.initialUrlRequest?.toMap(),
|
||||
'initialFile': widget.initialFile,
|
||||
'initialData': widget.initialData?.toMap(),
|
||||
'initialOptions': widget.initialOptions?.toMap() ?? {},
|
||||
|
|
Loading…
Reference in New Issue