From 3ceff9b0d79778ed2cb560e44455b8dcd1d09991 Mon Sep 17 00:00:00 2001 From: omralcorut Date: Mon, 18 Jan 2021 17:08:26 +0300 Subject: [PATCH] Fix injectStyleFile name to injectCSSFileFromUrl --- lib/src/in_app_webview_controller.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/in_app_webview_controller.dart b/lib/src/in_app_webview_controller.dart index b2ae8edf..6139b757 100644 --- a/lib/src/in_app_webview_controller.dart +++ b/lib/src/in_app_webview_controller.dart @@ -1397,7 +1397,7 @@ class InAppWebViewController { Future injectCSSFileFromUrl({@required String urlFile}) async { Map args = {}; args.putIfAbsent('urlFile', () => urlFile); - await _channel.invokeMethod('injectStyleFile', args); + await _channel.invokeMethod('injectCSSFileFromUrl', args); } ///Injects a CSS file into the WebView from the flutter assets directory.