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

Posted by Rohit Kumar | Updated on

Want to use user-agent in webview-flutter Flutter? You can use my plugin flutter_inappwebview, which is a Flutter plugin that allows you to add inline WebViews or open an in-app browser window and has a lot of events, methods, and options to control WebViews.

To set a custom user agent, you can simply use the userAgent option of InAppWebViewOptions. Full example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers