Remove url bar from chromeSafariBrowser in flutter_inappwebview
Asked Answered
Y

1

9

I am using ChromeSafariBrowser class of flutter_inappwebview to show the webview which contains videos. I am using this class cause it supports pip and also shows media controls on video play which most of dependencies doesnt provide. Now I want to remove the url bar from the top, how can i achieve it? Any help is appreciated, thanks in advance..

I want to remove the rectangular marked area in this picture

Following is my sample code

RaisedButton(
        onPressed: () async {
          await widget.browser.open(
            url: "https://player.vimeo.com/api/demo",
            options: ChromeSafariBrowserClassOptions(
              android: AndroidChromeCustomTabsOptions(
                addDefaultShareMenuItem: false,    
                enableUrlBarHiding:true,         
                toolbarBackgroundColor: "#000000"
              ),
              ios: IOSSafariOptions(
                barCollapsingEnabled: true,
                preferredBarTintColor: "#000000"
              )
            ),
          );
        },
        child: Text("Open Chrome Safari Browser")
      )
Yeager answered 19/1, 2021 at 5:37 Comment(0)
H
0

You can use this article for remove url bar, In this article, how to use this library is fully described:

ChromeSafariBrowser

I hope this useful for you.

Houseman answered 1/6, 2024 at 15:26 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.