Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

214
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda