Commit 9ea8262f authored by Lorenzo Pichilli's avatar Lorenzo Pichilli Committed by GitHub

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

Fix injectStyleFile name to injectCSSFileFromUrl
parents 3f2fe9e8 3ceff9b0
...@@ -1410,7 +1410,7 @@ class InAppWebViewController { ...@@ -1410,7 +1410,7 @@ class InAppWebViewController {
Future<void> injectCSSFileFromUrl({required String urlFile}) async { Future<void> injectCSSFileFromUrl({required String urlFile}) async {
Map<String, dynamic> args = <String, dynamic>{}; Map<String, dynamic> args = <String, dynamic>{};
args.putIfAbsent('urlFile', () => urlFile); 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. ///Injects a CSS file into the WebView from the flutter assets directory.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment