Fix injectStyleFile name to injectCSSFileFromUrl

This commit is contained in:
omralcorut 2021-01-18 17:08:26 +03:00
parent eaad17eb4f
commit 3ceff9b0d7
1 changed files with 1 additions and 1 deletions

View File

@ -1397,7 +1397,7 @@ class InAppWebViewController {
Future<void> injectCSSFileFromUrl({@required String urlFile}) async {
Map<String, dynamic> args = <String, dynamic>{};
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.