Merge pull request #645 from omralcrt/fix-method-name

Fix injectStyleFile name to injectCSSFileFromUrl
This commit is contained in:
Lorenzo Pichilli 2021-01-29 00:21:23 +01:00 committed by GitHub
commit 9ea8262fce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1410,7 +1410,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.