flutter_js
flutter_js copied to clipboard
`import` and `require()` handler like the one in flutter_qjs
Would there be any things like this?
flutterJs.addModuleHandler((String name){return "export name=${name}";});
I also need to use a library. is there an answer to this? I see the question is quite old
mee too want to use some library inside js file, using require
this library doesn't seem to have any support but I found something I've made some contributions that will do what you want: https://pub.dev/packages/mercuryjs/example
Hi @ekkis can you provide any example where you're calling async function written in js from dart using same package
Check out the openwebf server for support on using Mercury https://discord.gg/DvUBtXZ5rK
As for import
/ require
, you're better off bundling your code. See this for an example on doing that.
Hi @ekkis can you provide any example where you're calling async function written in js from dart using same package
wonderful news, Mercury has a new release where fetches work
mee too want to use some library inside js file, using require