From ac000804b9dad3e7aa46170645d76307458472f9 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Tue, 30 Mar 2021 18:20:17 +0200 Subject: [PATCH] Updated auto-comment.yml --- .github/workflows/auto-comment.yml | 2 +- lib/src/in_app_webview/in_app_webview_controller.dart | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-comment.yml b/.github/workflows/auto-comment.yml index fb538ac3..ff96e81e 100644 --- a/.github/workflows/auto-comment.yml +++ b/.github/workflows/auto-comment.yml @@ -11,7 +11,7 @@ jobs: 👋 @{{ author }} **NOTE**: This comment is auto-generated. - +
Are you sure you have already searched for the same problem? Some people open new issues but they didn't search for something similar or for the same issue. diff --git a/lib/src/in_app_webview/in_app_webview_controller.dart b/lib/src/in_app_webview/in_app_webview_controller.dart index dfe1752f..910881ec 100644 --- a/lib/src/in_app_webview/in_app_webview_controller.dart +++ b/lib/src/in_app_webview/in_app_webview_controller.dart @@ -357,6 +357,7 @@ class InAppWebViewController { break; case "onZoomScaleChanged": if ((_webview != null && + // ignore: deprecated_member_use_from_same_package (_webview!.androidOnScaleChanged != null || _webview!.onZoomScaleChanged != null)) || _inAppBrowser != null) { @@ -365,10 +366,14 @@ class InAppWebViewController { if (_webview != null) { if (_webview!.onZoomScaleChanged != null) _webview!.onZoomScaleChanged!(this, oldScale, newScale); - else + else { + // ignore: deprecated_member_use_from_same_package _webview!.androidOnScaleChanged!(this, oldScale, newScale); - } else + } + } else { + // ignore: deprecated_member_use_from_same_package _inAppBrowser!.androidOnScaleChanged(oldScale, newScale); + } } break; case "onReceivedIcon":