'Flutter browser widget

I have created a widget in flutter. If you install the widget from Windows or Mac, then everything works fine. But if you install a widget from Linux, then the widget works half.

How the widget works:

First you need to go through authorization, it works through an http request, after that we save the id using shared_preferences. It all works.

After you need to click on the button that opens the tab using url_launcher and after that the http request is sent. The tab opens, but the http request is not sent. This is a problem only on linux.

Here is the manifest.json file:

{
    "name": "name",
    "description": "description.",
    "version": "1.0.0",
    "action": {
        "default_popup": "index.html",
        "default_icon": "/icons/Icon-512.png"
    },
    "permissions": [
        "tabs",
        "storage",
        "activeTab"
    ],
    "manifest_version": 3
}


Sources

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

Source: Stack Overflow

Solution Source