3
votes

Is there a way to use existing Polymer standard core elements , such as core-toolbar and core-menu, in Dart?

If you download the polymer project with bower you can find the javascript versions in /polymer/bower-components/.

core-toolbar, for instance, contains a core-toolbar.html and a metadata.html. These have <polymer-element> tags in them just like in Dart. Can these be adapted?

2
The PolymerDart team wrote a comment a few weeks that Polymer.js and PolymerDart should basically work together on the same page and that they will continue to improve interoperability but I haven't tried it yet. You can also take a look at the Dart port github.com/ErikGrimes/polymer_elements, github.com/ErikGrimes/polymer_ui_elements. Core elements are mostly a selection of polymer_elements/polymer_ui_elements. Not all of these elements are fully working yet though. - Günter Zöchbauer

2 Answers

3
votes

I found this issues:

As mentioned in my comment alternatively you could use the Dart port of polymer_elements and polymer_ui_elements

5
votes

In the meantime, an official package has arrived:

http://pub.dartlang.org/packages/core_elements

And you can even have the paper elements of the material design:

http://pub.dartlang.org/packages/paper_elements