Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

webview_flutter target _blank is not working

Tags:

flutter

I am using webview_flutter 0.3.3+1, my initialUrl loads fine, It contains various links, when clicking on a link it navigates properly but if a link has target set to _BLANK, it doesn't do anything.

WebView(
      initialUrl: 'https://SOME_URL',
      javascriptMode: JavascriptMode.unrestricted,
)

This Works

<a href="http://example.com">Link A</a>

below doesn't work, it should open external browser but click doesn't take anywhere

<a href="http://example.com" target="_BLANK">Link B</a>
like image 579
user969068 Avatar asked Dec 09 '25 19:12

user969068


1 Answers

This issue has been fixed in webview_flutter v0.3.19+6

https://github.com/flutter/plugins/pull/2500

like image 71
user969068 Avatar answered Dec 11 '25 23:12

user969068



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!