'Cannot close window opener in webview Flutter

I use web view to convert my website into the android app using flutter. From the website, I have window.opener to display update form and the window have two buttons, “update” and “back”.

It display good and update successfully. However, it unable to close when clicking “back”.

How can I view the window and back after do the task by using webview? I have read somewhere which use InAppWebView but do not know to apply it.

Please help me, I am very beginner in Flutter.



Solution 1:[1]

Yes you need to use InAppWebView here is an exemple to help you with your problem: https://inappwebview.dev/docs/in-app-webview/basic-usage/

just copy the code and try it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Achref Tirari