FLUTTER ECOSYSTEM

jifalops/mdc_web

Material Components Web JavaScript 庫的 Dart 包裝器。

mdc_web 專案封面
Stars
18
Forks
6
最近推送(UTC)
2021年6月26日
專案狀態
未封存
Jacob Phillips GitHub avatar
GITHUB User

Jacob Phillips ↗

語言JavaScriptSCSSCSSDartHTML

此儲存庫發佈的套件

使用的依賴

依賴清單 4 項
  • js^0.6.1+1
  • meta^1.1.7
  • test開發依賴^1.6.5
  • path開發依賴^1.6.2

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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.