Skip to content

[webview_flutter] Cannot access webview changes brought by pull request #4446 #93139

@Wian-TMC

Description

@Wian-TMC

I have updated the webview_flutter package to try out the new local html feature from the merge here.

The specific changes include 2 new functions, specifically loadFile and loadHtmlString as shown below:

@override
  Future<void> loadFile(String absoluteFilePath) async {
    assert(absoluteFilePath != null);
    return _channel.invokeMethod<void>('loadFile', absoluteFilePath);
  }

  @override
  Future<void> loadHtmlString(
    String html, {
    String? baseUrl,
  }) async {
    assert(html != null);
    return _channel.invokeMethod<void>('loadHtmlString', <String, dynamic>{
      'html': html,
      'baseUrl': baseUrl,
    });
  }

For some reason I am not able to access these new functions (nor are they an option) with the updated package. Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    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