talira

webview_flutter

Flutter plugin that shows web pages in a WebView widget

open sourceBSD-3-Clausefree

webview_flutter is the Flutter team's plugin for showing web content inside an app: a WebViewWidget driven by a WebViewController that loads URLs, runs JavaScript, reports page progress and HTTP or resource errors, and lets the app allow or block each navigation. On Android it uses the system WebView (SDK 24 and later), and on iOS (13.0 and later) and macOS (10.15 and later) it uses WKWebView, with platform-specific features available through each platform's implementation package. It's part of the flutter/packages repository and published on pub.dev by flutter.dev.

Problems it solves

  • show a web page inside my Flutter app
  • embed a website in a Flutter screen and block some links
  • run JavaScript in a web page shown in my Flutter app

Features

  • Shows web pages inside a Flutter app with a WebView widget
  • Loads URLs and runs JavaScript through a WebViewController
  • Lets the app allow or block each navigation request
  • Reports page progress, HTTP errors and resource errors
  • Android, iOS and macOS

Limitations

  • Supports Android, iOS and macOS only: no web, Windows or Linux implementation in this package1

Alternatives

The same job

These do what webview_flutter does.

  1. flutter_inappwebview Flutter plugin for inline webviews, headless webviews and in-app browser windows
  2. Flutter Packages Flutter's first-party packages and plugins, maintained by the Flutter team
  3. url_launcher Flutter plugin for opening URLs, phone numbers, SMS and email links
  4. video_player Flutter plugin for playing video inline with other widgets
  5. Flutter Widget from HTML Render HTML as Flutter widgets, with a focus on correctness and extensibility
  6. package_info_plus Flutter plugin for querying information about the application package

Compare webview_flutter with the top 3