The flutter_html package(at least the version you've imported) under the hood uses the webview_flutter plugin. You didn't mention what version of flutter_html you are using, but, i suppose, it's around 2.2.1. This version works with webview_flutter package from version 2.0.4 till 3.0.0(exclusive).
The error you're getting says that the webview_flutter package doesn't provide the API we expect. That means only one thing: you are using a version of the webview_flutter that flutter_html(the version you're using) isn't ready to work with.
How is it possible?
Perhaps, you're importing imperatively by yourself the webview_flutter in pubspec.yaml
, and you're importing a version out of the range ">=2.0.4 <3.0.0"(perhaps you're importing a newer version, that changed its API).
How to solve the issue?
You have to make sure that both flutter_html package and your own code use the same version(API) of the webview_flutter plugin. You can do it either by:
Hope it helps. Good luck!