Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 332
randomUser786 Avatar asked Feb 04 '23 18:02

randomUser786


1 Answers

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.

like image 104
Darshan Avatar answered Feb 08 '23 15:02

Darshan