Hi,
The refactored project isn't opensource and still some redesign/stylling work to do. So not possible to give a link.
Anyhow the interfacing towards mdcweb is more less straight ahead, using js_interop. Maybe the more complicated part is how things are wrapped on dart side. I just used some simple plain aggregation flavor and worked fine for this small project.
Below mdc-dialog is used as example. 3 Layers js, dart-js_interop, dart. When I got head up from the project and if interest, I consider give it a try, to see if possible to polish things to a lib and put it on github.
Regards
Jonas
----------- js ---------
function buildDialog(element) {
return new mdc.dialog.MDCDialog(element);
}
------- dart js_interop ---------
@JS()
class MdcDialogJS {
external void show();
}
@JS()
external MdcDialogJS buildDialog(Element e);
-------- Dart ----------
class MdcDialog {
final DivElement _e;
jsreg.MdcDialogJS _mdcDialogJS;
MdcDialog()
: _e = build();
DivElement element() => _e;
static DivElement build() =>
ElementTemplateLoader.tempElementStr(HTML_TEMPLATE).querySelector('div');
void show() {
_mdcDialogJS.show();
}
void mdcJsInitialSyncWithDOM() {
_mdcDialogJS = jsreg.buildDialog(_e);
}
}