From c65e72c70805fafdc9e0ab906de30ec7c05f0705 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Thu, 28 Jan 2021 17:18:02 +0100 Subject: [PATCH] updated README.md --- README.md | 6 ++---- example/integration_test/webview_flutter_test.dart | 4 +--- lib/src/webview.dart | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index ea971ea9..0e5df620 100755 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ First, add `flutter_inappwebview` as a [dependency in your pubspec.yaml file](ht ## Usage Classes: -- [InAppWebView](#inappwebview-class): Flutter Widget for adding an **inline native WebView** integrated into the flutter widget tree. To use `InAppWebView` class 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`. Also, note that on Android it requires **Android API 20+** (see [AndroidView](https://api.flutter.dev/flutter/widgets/AndroidView-class.html)) or **Android API 19+** if you enable the `useHybridComposition` Android-specific option. +- [InAppWebView](#inappwebview-class): Flutter Widget for adding an **inline native WebView** integrated into the flutter widget tree. Note that on Android it requires **Android API 20+** (see [AndroidView](https://api.flutter.dev/flutter/widgets/AndroidView-class.html)) or **Android API 19+** if you enable the `useHybridComposition` Android-specific option. - [ContextMenu](#contextmenu-class): This class represents the WebView context menu. - [HeadlessInAppWebView](#headlessinappwebview-class): Class that represents a WebView in headless mode. It can be used to run a WebView in background without attaching an `InAppWebView` to the widget tree. - [InAppBrowser](#inappbrowser-class): In-App Browser using native WebView. @@ -251,9 +251,7 @@ The plugin relies on Flutter's mechanism (in developers preview) for embedding A Known issues are tagged with the [platform-views](https://github.com/flutter/flutter/labels/a%3A%20platform-views) label in the [Flutter official repo](https://github.com/flutter/flutter). Keyboard support within webviews is also experimental. -To use `InAppWebView` class 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`. - -Also, note that on Android it requires **Android API 20+** (see [AndroidView](https://api.flutter.dev/flutter/widgets/AndroidView-class.html)) +Note that on Android it requires **Android API 20+** (see [AndroidView](https://api.flutter.dev/flutter/widgets/AndroidView-class.html)) or **Android API 19+** if you enable the `useHybridComposition` Android-specific option. Use `InAppWebViewController` to control the WebView instance. diff --git a/example/integration_test/webview_flutter_test.dart b/example/integration_test/webview_flutter_test.dart index 3d9114e3..4c4f9746 100644 --- a/example/integration_test/webview_flutter_test.dart +++ b/example/integration_test/webview_flutter_test.dart @@ -76,8 +76,6 @@ void main() { expect(currentUrl, 'https://www.google.com/'); }); - // enable this once https://github.com/flutter/flutter/issues/31510 - // is resolved. testWidgets('loadUrl with headers', (WidgetTester tester) async { final Completer controllerCompleter = Completer(); @@ -585,7 +583,7 @@ void main() { isPaused = await controller.evaluateJavascript(source: 'isPaused();'); expect(isPaused, true); - }/*, skip: true https://github.com/flutter/flutter/issues/72572 */); + }); }); testWidgets('getTitle', (WidgetTester tester) async { diff --git a/lib/src/webview.dart b/lib/src/webview.dart index 78c99419..a1b7c9b9 100644 --- a/lib/src/webview.dart +++ b/lib/src/webview.dart @@ -7,7 +7,7 @@ import 'in_app_webview_controller.dart'; import 'webview_options.dart'; import 'headless_in_app_webview.dart'; -///Abstract class that represents a WebView. Used by [WebView] and [HeadlessInAppWebView]. +///Abstract class that represents a WebView. Used by [InAppWebView] and [HeadlessInAppWebView]. abstract class WebView { ///The window id of a [CreateWindowRequest.windowId]. final int? windowId;