diff --git a/lib/src/in_app_webview_controller.dart b/lib/src/in_app_webview_controller.dart index de2c00f8..151a3bf3 100644 --- a/lib/src/in_app_webview_controller.dart +++ b/lib/src/in_app_webview_controller.dart @@ -1410,7 +1410,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.