I am using url_launcher package.
When in Flutter web, I would like the url to be opened in the current page, and not in target="_blank"
I tried adding forceWebView: true,
if (await canLaunch(url)) {
await launch(
url,
forceSafariVC: true,
forceWebView: true,
headers: <String, String>{'target': '_self'},
);
} else {
throw 'Could not launch $url';
}
And also added headers thinking they might have something to do, but they don't.
Is there a way to do this? Thank you
Any other solution to open a url in mobile and in web, and that enables the possiblity to open the web link in self is accepted also