Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

212
Views
Invoke custom javascript function in flutter

1.Placed a js file in assets folder. 2.Added the path in pub spec.yaml 3.How do I invoke a function from a js file from flutter ?

I have tried the following approaches 1.String jsCode = await rootBundle.loadString('assets/temp.js'); but I am unable to invoke function of js file as it is a string. 2. imported flutter_js package but builds fails with compilation errors.

Path of js file is: assets/temp.js

Content of temp.js

function add(){
print("add");
}

snippet of pubspec.yaml flutter: assets: - assets/

Please help me out here, thank you.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!