Polymer is a new type of library for the web, built on top of Web Components, and designed to leverage the evolving web platform on modern browsers.
Polymer.dart is a Dart port of Polymer created and maintained by the Dart team. The Dart team is collaborating with the Polymer team to ensure that polymer.dart elements and polyfills are fully compatible with Polymer.
Add the polymer.dart package to your pubspec.yaml file:
dependencies: polymer: any
Instead of using
any, we recommend using version ranges to avoid getting your project broken on each release. Using a version range lets you upgrade your package at your own pace:
dependencies: polymer: ">=0.5.0 <0.5.1"
We update versions within the range when we release small bug fixes. For
0.5.0+1 is considered a non-breaking change. We change versions
outside of the range when we introduce a breaking change. See our
changelog to find the version that works best for you.
Note: these documents are currently out of date.
Dependencies are installed using the Pub Package Manager.
pub install # Run command line tests and automated end-to-end tests. It needs two # executables on your path: `dart` and `content_shell` (see below # for links to download `content_shell`) test/run.sh
For Linux users all the necessary fonts must be installed see https://code.google.com/p/chromium/wiki/LayoutTestsLinux.
We also have the Web UI development list for discussions about internals of the code, code reviews, etc.