js_import 1.0.2 copy "js_import: ^1.0.2" to clipboard
js_import: ^1.0.2 copied to clipboard

Importing JS libraries and injection JS scripts into Flutter Web projects.

JS Import #

Importing JS sources into Flutter Web projects.

Pub Likes Pub Version License: MIT

Buy Me A Coffee

Getting Started #

Import:

  JSImport.import(
    sources: [
      "asset/app.js",
      "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js",
    ],
  );

Is imported:

  JSImport.isImported(source: "asset/app.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.

0
likes
140
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

Importing JS libraries and injection JS scripts into Flutter Web projects.

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on js_import