Search packages, repositories and app categories

GitHub repositoryjifalops/mdc_web

mdc_web

Dart wrapper for the material-components-web javascript library.

mdc_web project cover
Stars
18
Forks
6
Last push (UTC)
Jun 26, 2021
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

pub points

mdc_web

Dart wrapper for the material-components-web javascript library.

Usage

In your index.html, include the script just before the main.dart.js script.

<!--
  This exposes the `mdc` global variable required by this package.
  For debugging purposes you can replace the ".min.js" extension with ".js".
-->
<script defer src="packages/mdc_web/material-components-web.min.js"></script>
<script defer src="main.dart.js"></script>

Now in your dart application you can use all of the MDC* classes as described by the Material Design Web component reference.

Documentation

Each class and notable members are documented. Class documentation includes links to corresponding (if available):

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 most implementations, but if it does affect you, please let me know.

Jacob Phillips GitHub avatar
GitHub author

Jacob Phillips ↗

LanguagesJavaScriptSCSSCSSDartHTML

Packages published by this repository

Dependencies used

Dependency list 4 items

  • js^0.6.1+1
  • meta^1.1.7
  • testDevelopment^1.6.5
  • pathDevelopment^1.6.2

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗