flutter_browser_app
flutter_browser_app copied to clipboard
Tap on web elements that open link in new tab not working
Environment
Technology | Version |
---|---|
Flutter version | 2.0.0 |
App version | Git revision 1904602 |
Android version | 10 |
iOS version | - |
Xcode version | - |
Device information: Nokia 6.1 QKQ1.190828.002
Description
Expected behavior: When I tap on web elements that open link in new tab, a new tab opens and go to that url.
Current behavior: When I tap on web elements that open link in new tab, a new tab opens with url about:blank
Steps to reproduce
- Open a website that contains an element that opens link in new tab (www.fujinet.net)
- Tap on element that opens link in new tab (youtube icon at bottom of the page)
- See the target url in new tab (it should be youtube.com but it is about:blank instead)
can You add screenshot from my side its working Well
try this
onCreateWindow: (controller, createWindowRequest) async {
var webViewTab = WebViewTab(
key: GlobalKey(),
webViewModel: WebViewModel(
url: createWindowRequest.request.url,
windowId: createWindowRequest.windowId),
);
browserModel.addTab(webViewTab);
return;
}
can You add screenshot from my side its working Well
try this
onCreateWindow: (controller, createWindowRequest) async { var webViewTab = WebViewTab( key: GlobalKey(), webViewModel: WebViewModel( url: createWindowRequest.request.url, windowId: createWindowRequest.windowId), );
browserModel.addTab(webViewTab);
return;
}
I can confirm this issue. Maybe related to this: https://github.com/pichillilorenzo/flutter_inappwebview/issues/877?
is there any solution to this ?