Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use user-agent in webview-flutter Flutter?

I tried to use webview_flutter plugin in Flutter. But cannot find to set useragent in there. It's should be there right ? it's a basic function of webview. Is there any possibility way to achieve that ? Thank you in advance.

like image 605
Luki L Avatar asked Jan 09 '19 01:01

Luki L


1 Answers

webview_flutter: ^0.3.13

introduced user agent, so now it could be used easily, like

WebView(
  userAgent: "random",
  initialUrl: "https://stackoverflow.com/questions/54102162/how-to-use-user-agent-in-webview-flutter-flutter",
)
like image 126
Ragaisis Avatar answered Oct 08 '22 07:10

Ragaisis