mdc_web 0.1.0+1 mdc_web: ^0.1.0+1 copied to clipboard
Dart wrapper for the material-components-web javascript library.
mdc_web #
Dart wrapper for the material-components-web javascript library.
Usage #
In your index.html, add the following script at the end of the head
section.
<!--
This exposes the `mdc` global variable required by this package.
For debugging purposes you can replace the ".min.js" extension with ".js".
-->
<script src="packages/mdc_web/material-components-web.min.js"></script>
Now in your main.dart
or other dart files you can use all of the MDC*
classes as described by the Material Design Web component reference.
This package was created by closely following the above component reference along with the Javascript source code. All documented component features as well as some undocumented features are included.
Limitations #
Only the components themselves were mirrored. Their foundation and adapter classes are currently beyond the scope of this package as they are for deep customization within other web frameworks. However, the base MDCFoundation
and MDCComponent
classes are included. This limitation should not affect 95%+ of use cases.