Skip to content

WebViewController.loadUrl() fails with  #185

@wiertel

Description

@wiertel

I've been trying to use loadUrl() to change webview contents. But it fails with the error:

[ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(Invalid Arguments, Invalid Arguments, null, null)

I'm pretty sure it should be "url" instead of "viewType" here, as this fixes the loadUrl().

if (GetValueFromEncodableMap(arguments, "viewType", &url)) {

BTW. You might consider including more details in logs or result->Error(), it would make tracking issues easier

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions