Search code examples
flutterinappbrowser

How to open a link in a in-app browser window


I would like to know how to open links in an in-app browser, just like this:

in-app browser


Solution

  • You can achieve that using flutter_web_browser plugin which opens web page in-app in Android chrome tabs style.

    Ex:

    body: new Center(
              child: new RaisedButton(
                onPressed: () => openBrowserTab(),
                child: new Text('Open website'),
              ),
            ),
    
    
    openBrowserTab() async {
        await FlutterWebBrowser.openWebPage(url: "https://gadgets.ndtv.com/", androidToolbarColor: Colors.deepPurple);
      }
    

    Result:

    enter image description here

    Hope this helps.