Nice! But how about if you have a full js scrip instead of the add() function? rootBundle.loadStrig() won't work as-is. How do we select the desired function inside a class?
Thanks a lot man!! I had learned javascript recently and really appreciate your efforts!! This is the perfect video to understand the case of using js in flutter!! You deserve more subs buddy!!!! And also you got a new SUB!!!!
flutter_js cannot be executed in an Isolation. How does this library run in isolation? This library also has problems on Samsung, Sony, and other devices.
I'm trying to follow your example using my own JS lib, but getting ERROR: undefined is not an object (evaluating 'global.window.define') on iOS, TypeError: cannot read property 'define' of undefined on Android. Any suggestions would be appreciated.
What if we have a js file which has 100 functions in it. When I use it like the way you show I get an error like ReferenceError: 'functionName' is not defined, what did I do wrong or how should I do that, thanks.
hey, I tried to integrate JS lib into my flutter app, but getting `TypeError: cannot read property 'define' of undefined` for the following line in the JS bundle `if (typeof global.window.define == 'function' && global.window.define.amd) {` Any ideas what's wrong? Very same JS bundle works fine for me for the native android app.
Nice! But how about if you have a full js scrip instead of the add() function? rootBundle.loadStrig() won't work as-is. How do we select the desired function inside a class?
Did you find the solution? If you did kindly let me know.
@@imranajabeen1322 not really
in this case better to use electron or ionic
Do some string splitting based on regular expressions and then run load string for each split part.
@@iamtsp Good idea! thank you
Thanks a lot man!! I had learned javascript recently and really appreciate your efforts!! This is the perfect video to understand the case of using js in flutter!! You deserve more subs buddy!!!! And also you got a new SUB!!!!
flutter_js cannot be executed in an Isolation. How does this library run in isolation? This library also has problems on Samsung, Sony, and other devices.
Hi @Learn App Code , You have any idea of package which works for all three web,ios and android ?
I'm trying to follow your example using my own JS lib,
but getting ERROR: undefined is not an object (evaluating 'global.window.define') on iOS,
TypeError: cannot read property 'define' of undefined on Android.
Any suggestions would be appreciated.
I am getting the following error - type QuickJsRuntime2 is not a subtype of JavascriptCoreRuntime
can you give me the source code
of this app
Nicely explained, thank you
What if we have a js file which has 100 functions in it. When I use it like the way you show I get an error like ReferenceError: 'functionName' is not defined, what did I do wrong or how should I do that, thanks.
Did you find a solution?
nope@@arthurlima2020
Can I use turf js with flutter
us? I believe its 'use'
hey, I tried to integrate JS lib into my flutter app,
but getting `TypeError: cannot read property 'define' of undefined`
for the following line in the JS bundle `if (typeof global.window.define == 'function' && global.window.define.amd) {`
Any ideas what's wrong?
Very same JS bundle works fine for me for the native android app.
not easy to use js in flutter
Flutter is even worst, lol
why???