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.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add js_import

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  js_import: ^1.0.2

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:js_import/js_import.dart';
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