I am trying to use Ether JS in my Flutter application. I know that it is not directly supported and even the existing implementations are not really well documented.
Future loadJS(String name) async { var givenJS = rootBundle.loadString('assets/$name.js'); return givenJS.then((String js) { flutterWebViewPlugin.onStateChanged.listen((viewState) async { if (viewState.type == WebViewState.finishLoad) { flutterWebViewPlugin.evalJavascript(js); } }); }); }