Search code examples
flutterwebviewmetadatawebview-flutter

Reading metadata in Flutter's webview


I'm using webview_flutter in a Flutter's app. I need to know the language of the page opened in that webview, maybe reading the "lang=en-us" tag. How can I do that?


Solution

  • Yeah you can read the lang attribute. You can do this by getting the html content itself. This answer might help - answer