文件最后提交记录最后更新时间
[webview_flutter_android][webview_flutter_wkwebview] Adds support to respond to recoverable SSL certificate errors (#9281) Platform impls of https://github.com/flutter/packages/pull/9150 Part of https://github.com/flutter/flutter/issues/36925 ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.1 年前
添加资源文件 Signed-off-by: Liyupeng <liyupeng@micros.email> 10 个月前
[webview_flutter_android][webview_flutter_wkwebview] Adds support to respond to recoverable SSL certificate errors (#9281) Platform impls of https://github.com/flutter/packages/pull/9150 Part of https://github.com/flutter/flutter/issues/36925 ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.1 年前
[webview_flutter_android][webview_flutter_wkwebview] Adds support to respond to recoverable SSL certificate errors (#9281) Platform impls of https://github.com/flutter/packages/pull/9150 Part of https://github.com/flutter/flutter/issues/36925 ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.1 年前
[webview_flutter_android][webview_flutter_wkwebview] Adds support to respond to recoverable SSL certificate errors (#9281) Platform impls of https://github.com/flutter/packages/pull/9150 Part of https://github.com/flutter/flutter/issues/36925 ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.1 年前
[webview_flutter_android][webview_flutter_wkwebview] Adds support for setOnScrollPositionChange for webview_flutter platform implementations (#5664) Adds iOS and Android implementation for content offset listener This PR is part of a series of PRs that aim to close https://github.com/flutter/flutter/issues/31027. The PR that contains all changes can be found at https://github.com/flutter/packages/pull/3444.2 年前
[webview_flutter_android][webview_flutter_wkwebview] Adds support to respond to recoverable SSL certificate errors (#9281) Platform impls of https://github.com/flutter/packages/pull/9150 Part of https://github.com/flutter/flutter/issues/36925 ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.1 年前
[webview_flutter_android] Updates plugin to use ProxyApiss (#7794) 1 年前
[webview_flutter] Extract Android implementation into a separate package (#4343) * Setup webview_flutter_android package. Creates a new webview_flutter_android directory and adds the following meta-data files: - AUTHORS: copied from the webview_flutter package and added my name; - CHANGELOG.md: new file adding description for release 0.0.1; - LICENSE: copied from the webview_flutter package; - README.md: new file adding the standard platform implementation description; - pubspec.yaml: new file adding package meta-data for the webview_flutter_android package. * Direct copy of "android" folder. A one to one copy of the webview_flutter/android folder to webview_flutter_android/ using the following command: ``` cp -R ./webview_flutter/android ./webview_flutter_android/ ``` * Direct copy of Android specific .dart files. Copied the Android specific .dart files over from the ./webview_flutter package. Note that the SurfaceAndroidWebView class in the ./webview_flutter_android/lib/webview_surface_android.dart file is copied directly (without modifactions) from the ./webview_flutter/lib/webview_flutter.dart file. * Modify .dart code to work with platform_interface. Make sure the AndroidWebView and SurfaceAndroidWebView widgets extend the WebViewPlatform class from the webview_flutter_platform_interface package correctly by accepting an instance of the JavascriptChannelRegistry class. * Direct copy of the webview_flutter/example app. This commit makes a direct copy of the webview_flutter/example app to the webview_flutter_android package. After the copy the example/ios folder is removed as it doesn't serve a purpose in the Android specific package. Commands run where: ``` cp -R ./webview_flutter/example ./webview_flutter_android/ rm -rf ./webview_flutter_android/example/ios ``` * Update example to Android specific implementation. This commit updates the example App so it directly implements an Android specific implementation of the webview_flutter_platform_interface. * Update integration tests. Updated the existing integration tests (copied from webview_flutter package) so they work correctly with the implementation of the webview_flutter_android package. * Update webview_flutter_platform_interface dependency Updated the pubspec.yaml to depend on version 1.0.0 of the webview_flutter_platform_interface package instead of using a path reference (which is now possible since the platform interface package has now been published). Co-authored-by: BeMacized <bodhimulders@bemacized.net> * Use different bundle ID for Android example app. Make sure the webview_flutter and webview_flutter_android example apps use different application identifiers so that the CI doesn't run into problems. * Skip flaky integration_tests (issue 86757). * Exlude platform implementations from build all step. Make sure the webview_flutter_android and webview_flutter_wkwebview packages are excluded from the Build All plugins step as they will cause conflicts with the current implementation which is still part of the webview_flutter package. * Split helper classes from main example widget. Move the WebView and related WebViewController classes from the main.dart into a separate web_view.dart file. Co-authored-by: BeMacized <bodhimulders@bemacized.net>4 年前
[webview_flutter_android] Updates plugin to use ProxyApiss (#7794) 1 年前
[webview_flutter_android][webview_flutter_wkwebview] Adds support to respond to recoverable SSL certificate errors (#9281) Platform impls of https://github.com/flutter/packages/pull/9150 Part of https://github.com/flutter/flutter/issues/36925 ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.1 年前
README.md

webview_flutter_android

The Android implementation of webview_flutter.

Usage

This package is endorsed, which means you can simply use webview_flutter normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.

However, if you import this package to use any of its APIs directly, you should add it to your pubspec.yaml as usual.

Display Mode

This plugin supports two different platform view display modes. The default display mode is subject to change in the future, and will not be considered a breaking change, so if you want to ensure a specific mode, you can set it explicitly.

Texture Layer Hybrid Composition

This is the current default mode for versions >=23. This is a new display mode used by most plugins starting with Flutter 3.0. This is more performant than Hybrid Composition, but has some limitations from using an Android SurfaceTexture. See:

Hybrid Composition

This is the current default mode for versions <23. It ensures that the WebView will display and work as expected, at the cost of some performance. See:

This can be configured for versions >=23 with AndroidWebViewWidgetCreationParams.displayWithHybridComposition. See https://pub.dev/packages/webview_flutter#platform-specific-features for more details on setting platform-specific features in the main plugin.

External Native API

The plugin also provides a native API accessible by the native code of Android applications or packages. This API follows the convention of breaking changes of the Dart API, which means that any changes to the class that are not backwards compatible will only be made with a major version change of the plugin. Native code other than this external API does not follow breaking change conventions, so app or plugin clients should not use any other native APIs.

The API can be accessed by importing the native class WebViewFlutterAndroidExternalApi:

Java:

import io.flutter.plugins.webviewflutter.WebViewFlutterAndroidExternalApi;

Fullscreen Video

To display a video as fullscreen, an app must manually handle the notification that the current page has entered fullscreen mode. This can be done by calling AndroidWebViewController.setCustomWidgetCallbacks. Below is an example implementation.

androidController.setCustomWidgetCallbacks(
  onShowCustomWidget: (Widget widget, OnHideCustomWidgetCallback callback) {
    Navigator.of(context).push(MaterialPageRoute<void>(
      builder: (BuildContext context) => widget,
      fullscreenDialog: true,
    ));
  },
  onHideCustomWidget: () {
    Navigator.of(context).pop();
  },
);

Contributing

For information on contributing to this plugin, see CONTRIBUTING.md.