This package contains dart.js, and previously contained interop.js
The dart.js file is used in Dart browser apps to check for native Dart support and either (a) bootstrap Dartium or (b) load compiled JS instead. Previously, we've recommended that you add a script tag pointing the version of dart.js in our repository. This doesn't work offline and also results in slower startup (see dartbug.com/6723).
Instead, we now recommend that you install dart.js via the following steps:
Add the following to your pubspec.yaml: dependencies: browser: any
Run pub install.
Use a relative script tag in your html to the installed version:
If you do not wish to use pub, you may host a copy of this file locally instead. In this case, you will need to update it yourself as necessary. We reserve the right to move the old file in the repository, so we no longer recommend linking to it directly.
This script was required for dart:js interop to work, but it is no longer needed. The functionality is now supported by dart:js directly.
If you previously had a script such as this, please remove it:
Add this to your package's pubspec.yaml file:
dependencies: browser: "^0.10.0+2"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
Check the docs for your editor to learn more.
|0.10.0+2||Mar 18, 2014|
|0.10.0+1||Mar 18, 2014|
|0.10.0||Feb 28, 2014|
|0.9.1||Jan 2, 2014|
|0.9.0||Nov 6, 2013|
|0.8.10+4||Nov 5, 2013|
|0.8.10+3||Nov 4, 2013|
|0.8.10||Nov 1, 2013|
|0.8.9||Oct 31, 2013|
|0.8.8||Oct 30, 2013|
We analyzed this package, and provided a score, details, and suggestions below.
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: Flutter, web, other
Changelog entries help clients to follow the progress in your code.
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*, it usually means that the author is still experimenting with the general direction API.
Maintain an example.
Create a short demo in the
example/directory to show how to use this package. Common file name patterns include:
example.dartor you could also use
|Dart SDK||>=1.3.0-dev.4.1 <2.0.0|