Skip to content
 
 

Repository files navigation

JS Import

Importing JS sources into Flutter Web projects.

Pub Likes Pub Version License: MIT

Buy Me A Coffee

Getting Started

Import:

  JSImport.import(source: "assets/app.js");
  JSImport.import(source: "assets/app.js", package: "another_package");
  JSImport.import(
    source: "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js",
  );

Is imported:

  JSImport.isImported(source: "assets/app.js");
  JSImport.isImported(source: "assets/app.js", package: "another_package");
  JSImport.isImported(
    source: "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js",
  );

Additional Information

For more details see example project.
And feel free to open an issue if you find any bugs or errors or suggestions.

About

Importing JS sources into Flutter Web projects.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages