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.