Flutter: webview_flutter Customizations (part 1: set as custom)

Fredric Cliver
2 min readOct 1, 2019

--

Flutter has the ‘webview_flutter’ plugin. but, we cannot use without modifications. because that has only very limited features.

And I will tell you how we can modify that plugin as proper to us.

So, What is the problem?

  1. We cannot open the _blank tab and we cannot take control the javascript method doing open as a new window.
  2. if you load a URL with HTTP, not HTTPS, then your webview wouldn’t be loaded.
  3. You cannot prevent to open in the external app by some URL links.

So, at first, we have to get the plugin from the Github.
and plugin in here.

But, we don’t need an entire plugin.

You just need the part, [plugins/packages/webview_flutter]

  1. make the plugin directory (location is not restricted. anywhere available)
    and past the whole ‘webview_flutter’ directory to there.

2. And you have to set the precise path on your pubspec.yaml in the root

3. import.

--

--

Fredric Cliver
Fredric Cliver

Written by Fredric Cliver

13+ years in the digital trenches. I decode complex tech concepts into actionable insights, focusing on AI, Software Engineering, and emerging technologies.

No responses yet