Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

flutter inject javascript in flutter webview

onLoadStop: (controller, url) async {
  var result = await controller.evaluateJavascript(source: "1 + 1");
  print(result.runtimeType); // int
  print(result); // 2
},
Source by inappwebview.dev #
 
PREVIOUS NEXT
Tagged: #flutter #inject #javascript #flutter #webview
ADD COMMENT
Topic
Name
8+5 =