Both flutter_inappwebview and webview_flutter_web packages lack returning the html content from the rendered web view.
At the flutter_inappwebview, adding this snippet at the example app returns the html content both at iOS and Android, but not at Chrome, which html is null:
ElevatedButton(
child: Icon(Icons.html),
onPressed: () async {
final html2 = await webViewController?.getHtml();
print('html2 = $html2');
},
)
The same behavior happens at native webview from Flutter SDK don’t have the addJavascriptChannel function implemented. Getting the content at iOS and Android works, but not for web/chrome.
Is there any way of scrapping or getting the html content from a website using Dart or Flutter?