Flutter: webview_flutter Customizations (part 1: set as custom)
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?
- We cannot open the _blank tab and we cannot take control the javascript method doing open as a new window.
- if you load a URL with HTTP, not HTTPS, then your webview wouldn’t be loaded.
- 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]
- 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.