Add web browser to an app in Flutter

These packages are useful when one wants to load an URL within an app without opening OS’s browser like Chrome or Safari.

Table of Contents

easy_web_view

Easy Web Views is a widget that shows HTML content like a web browser. It supports web, mobile, and desktop.

On web
  • It supports HTML element.
  • It supports Markdown code.
  • It supports convert to Flutter widgets.
  • It supports remote download of URL.
  • It can convert Markdown to Html and vice versa.
  • When changing an URL, we use setState to notify the widget to reload the URL.
  • It can make text selectable like a real web browser.
  • When different keys are given to different widget, the app can show multiple views on the same screen.
EasyWebView(
          src: 'https://google.com/',
          isHtml: false, 
          isMarkdown: false, 
          convertToWidgets: false, onLoaded: () {  },
        )

web_browser

It provides a cross-platform Flutter widget for displaying websites and other web content. This package only supports web and mobile. And there is another restriction on mobile which is that it can only show content of the websites that allows iframe.

Navigation bar includes:

  • Address bar
  • Share button
  • Back button
  • Forward button
WebBrowser(
          initialUrl: 'https://flutter.dev/',
          javascriptEnabled: true,
        )

Leave a Comment

Your email address will not be published. Required fields are marked *

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close