webview_flutter 0.3.9+1

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 100

WebView for Flutter (Developers Preview) #

pub package

A Flutter plugin that provides a WebView widget.

On iOS the WebView widget is backed by a WKWebView; On Android the WebView widget is backed by a WebView.

Developers Preview Status #

The plugin relies on Flutter's new mechanism for embedding Android and iOS views. As that mechanism is currently in a developers preview, this plugin should also be considered a developers preview.

Known issues are tagged with the platform-views and/or webview labels.

To use this plugin on iOS you need to opt-in for the embedded views preview by adding a boolean property to the app's Info.plist file, with the key io.flutter.embedded_views_preview and the value YES.

Setup #

iOS #

Opt-in to the embedded views preview by adding a boolean property to the app's Info.plist file with the key io.flutter.embedded_views_preview and the value YES.

Usage #

Add webview_flutter as a dependency in your pubspec.yaml file.

You can now include a WebView widget in your widget tree. See the WebView widget's Dartdoc for more details on how to use the widget.

0.3.9+1 #

  • Add missing template type parameter to invokeMethod calls.
  • Bump minimum Flutter version to 1.5.0.
  • Replace invokeMethod with invokeMapMethod wherever necessary.

0.3.9 #

  • Allow external packages to provide webview implementations for new platforms.

0.3.8+1 #

0.3.8 #

  • Add debuggingEnabled property.

0.3.7+1 #

  • Fix an issue where JavaScriptChannel messages weren't sent from the platform thread on Android.

0.3.7 #

  • Fix loadUrlWithHeaders flaky test.

0.3.6+1 #

  • Remove un-used method params in webview_flutter

0.3.6 #

  • Add an optional headers field to the controller.

0.3.5+5 #

  • Fixed error in documentation of javascriptChannels.

0.3.5+4 #

  • Fix bugs in the example app by updating it to use a StatefulWidget.

0.3.5+3 #

  • Make sure to post javascript channel messages from the platform thread.

0.3.5+2 #

  • Fix crash from NavigationDelegate on later versions of Android.

0.3.5+1 #

  • Fix a bug where updates to onPageFinished were ignored.

0.3.5 #

  • Added an onPageFinished callback.

0.3.4 #

  • Support specifying navigation delegates that can prevent navigations from being executed.

0.3.3+2 #

  • Exclude LongPress handler from semantics tree since it does nothing.

0.3.3+1 #

  • Fixed a memory leak on Android - the WebView was not properly disposed.

0.3.3 #

  • Add clearCache method to WebView controller.

0.3.2+1 #

  • Log a more detailed warning at build time about the previous AndroidX migration.

0.3.2 #

  • Added CookieManager to interface with WebView cookies. Currently has the ability to clear cookies.

0.3.1 #

  • Added JavaScript channels to facilitate message passing from JavaScript code running inside the WebView to the Flutter app's Dart code.

0.3.0 #

  • Breaking change. Migrate from the deprecated original Android Support Library to AndroidX. This shouldn't result in any functional changes, but it requires any Android apps using this plugin to also migrate if they're using the original support library.

0.2.0 #

  • Added a evaluateJavascript method to WebView controller.
  • (BREAKING CHANGE) Renamed the JavaScriptMode enum to JavascriptMode, and the WebView javasScriptMode parameter to javascriptMode.

0.1.2 #

  • Added a reload method to the WebView controller.

0.1.1 #

  • Added a currentUrl accessor for the WebView controller to look up what URL is being displayed.

0.1.0+1 #

  • Fix null crash when initialUrl is unset on iOS.

0.1.0 #

  • Add goBack, goForward, canGoBack, and canGoForward methods to the WebView controller.

0.0.1+1 #

  • Fix case for "FLTWebViewFlutterPlugin" (iOS was failing to buld on case-sensitive file systems).

0.0.1 #

  • Initial release.

example/README.md

webview_flutter_example #

Demonstrates how to use the webview_flutter plugin.

Getting Started #

For help getting started with Flutter, view our online documentation.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  webview_flutter: ^0.3.9+1

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:webview_flutter/webview_flutter.dart';
  
Version Uploaded Documentation Archive
0.3.9+1 Jun 3, 2019 Go to the documentation of webview_flutter 0.3.9+1 Download webview_flutter 0.3.9+1 archive
0.3.9 May 31, 2019 Go to the documentation of webview_flutter 0.3.9 Download webview_flutter 0.3.9 archive
0.3.7+1 May 15, 2019 Go to the documentation of webview_flutter 0.3.7+1 Download webview_flutter 0.3.7+1 archive
0.3.6 Apr 22, 2019 Go to the documentation of webview_flutter 0.3.6 Download webview_flutter 0.3.6 archive
0.3.5+4 Apr 18, 2019 Go to the documentation of webview_flutter 0.3.5+4 Download webview_flutter 0.3.5+4 archive
0.3.5+3 Apr 2, 2019 Go to the documentation of webview_flutter 0.3.5+3 Download webview_flutter 0.3.5+3 archive
0.3.5+2 Mar 22, 2019 Go to the documentation of webview_flutter 0.3.5+2 Download webview_flutter 0.3.5+2 archive
0.3.5+1 Mar 22, 2019 Go to the documentation of webview_flutter 0.3.5+1 Download webview_flutter 0.3.5+1 archive
0.3.5 Mar 19, 2019 Go to the documentation of webview_flutter 0.3.5 Download webview_flutter 0.3.5 archive
0.3.4 Mar 9, 2019 Go to the documentation of webview_flutter 0.3.4 Download webview_flutter 0.3.4 archive

All 24 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
99
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
100
Learn more about scoring.

We analyzed this package on Jun 12, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.1
  • pana: 0.12.17
  • Flutter: 1.5.4-hotfix.2

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_driver
flutter_test