Issue I need to run javascript code in my Flutter project. I use flutter_js for this. I can pass int (or String) value as parameter to javascript, for example: String blocJs = await rootBundle.loadString("assets/js/bloc.js"); final jsResult = jsRuntime.evaluate(blocJs + """add($firstNumber,
Continue readingTag: flutter-js
Is it possible to use JS visual libraries (e.g. Chart.js or D3.js) in Flutter?
Issue If it is possible, how exactly does it work? Maybe it’s possible to access Flutter’s Canvas widget through JS? My best guess for this would be the flutter_js package. Solution I wouldn’t say that it’s not possible, but in
Continue readingMock JS object in tests on browser platform
Issue I have this simplified dart file using dart:js: (dataLayer is used for Google tags, if that’s any help) @JS() import ‘package:js/js.dart’; @JS(‘dataLayer.push’) external void _push(data); class Manager { void pushEvent(String event) { _push(event); } } On the web, it
Continue reading